/* toolbox.html — page-specific styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    min-height: 100vh;
    color: #c9d2dc;
    line-height: 1.6;
    padding: 20px;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(76,98,241,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(129,144,245,0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(135,187,240,0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    gap: 16px;
}

.logo {
    width: 256px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 40px;
    position: relative;
    z-index: 1;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #c9d2dc;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-text p {
    color: #8c99a8;
    font-size: 14px;
    font-weight: 500;
}

.welcome-section {
    text-align: center;
    margin-bottom: 48px;
    color: white;
}

.welcome-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #171e27, #2b8be6, #5468f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-title:hover {
    transform: scale(1.02);
}

.welcome-subtitle {
    font-size: 18px;
    color: #8c99a8;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 21px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(43,139,230,0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: var(--gradient);
    box-shadow: 0 8px 24px var(--shadow);
    position: relative;
    overflow: hidden;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.card:hover .card-icon::after {
    left: 100%;
}

.card-icon .material-icons {
    color: white;
    font-size: 21px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #c9d2dc;
    margin-bottom: 6px;
}

.card-description {
    color: #8c99a8;
    font-size: 11px;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #a1aab6;
    transition: all 0.3s ease;
    font-size: 15px;
}

.card:hover .card-arrow {
    color: #2b8be6;
    transform: translateX(4px);
}

/* Modern gradient color variations for cards */
.card:nth-child(1) { --gradient: linear-gradient(135deg, #2b8be6, #5468f2); --shadow: rgba(43,139,230,0.3); animation-delay: 0.1s; }
.card:nth-child(2) { --gradient: linear-gradient(135deg, #435af1, #ff6b00); --shadow: rgba(67,90,241,0.3); animation-delay: 0.2s; }
.card:nth-child(3) { --gradient: linear-gradient(135deg, #186dc2, #2b8be6); --shadow: rgba(24,109,194,0.3); animation-delay: 0.3s; }
.card:nth-child(4) { --gradient: linear-gradient(135deg, #10b981, #059669); --shadow: rgba(16, 185, 129, 0.3); animation-delay: 0.4s; }
.card:nth-child(5) { --gradient: linear-gradient(135deg, #f59e0b, #d97706); --shadow: rgba(245, 158, 11, 0.3); animation-delay: 0.5s; }
.card:nth-child(6) { --gradient: linear-gradient(135deg, #5468f2, #596ef3); --shadow: rgba(84,104,242,0.3); animation-delay: 0.6s; }
.card:nth-child(7) { --gradient: linear-gradient(135deg, #ef4444, #dc2626); --shadow: rgba(239, 68, 68, 0.3); animation-delay: 0.7s; }
.card:nth-child(8) { --gradient: linear-gradient(135deg, #186dc2, #145da6); --shadow: rgba(24,109,194,0.3); animation-delay: 0.8s; }
.card:nth-child(9) { --gradient: linear-gradient(135deg, #5468f2, #2b8be6); --shadow: rgba(84,104,242,0.3); animation-delay: 0.9s; }
.card:nth-child(10) { --gradient: linear-gradient(135deg, #10b981, #186dc2); --shadow: rgba(16, 185, 129, 0.3); animation-delay: 1.0s; }
.card:nth-child(11) { --gradient: linear-gradient(135deg, #f59e0b, #435af1); --shadow: rgba(245, 158, 11, 0.3); animation-delay: 1.1s; }
.card:nth-child(12) { --gradient: linear-gradient(135deg, #5468f2, #5468f2); --shadow: rgba(84,104,242,0.3); animation-delay: 1.2s; }
.card:nth-child(13) { --gradient: linear-gradient(135deg, #5468f2, #435af1); --shadow: rgba(84,104,242,0.3); animation-delay: 1.3s; }
.card:nth-child(14) { --gradient: linear-gradient(135deg, #186dc2, #10b981); --shadow: rgba(24,109,194,0.3); animation-delay: 1.4s; }
.card:nth-child(15) { --gradient: linear-gradient(135deg, #ff6b00, #ef4444); --shadow: rgba(255,107,0,0.3); animation-delay: 1.5s; }
.card:nth-child(16) { --gradient: linear-gradient(135deg, #1666b6, #3e92e7); --shadow: rgba(22,102,182,0.3); animation-delay: 1.6s; }
.card:nth-child(17) { --gradient: linear-gradient(135deg, #f59e0b, #ff6b00); --shadow: rgba(245, 158, 11, 0.3); animation-delay: 1.7s; }
.card:nth-child(18) { --gradient: linear-gradient(135deg, #14b8a6, #186dc2); --shadow: rgba(20, 184, 166, 0.3); animation-delay: 1.8s; }
.card:nth-child(19) { --gradient: linear-gradient(135deg, #596ef3, #5468f2); --shadow: rgba(89,110,243,0.3); animation-delay: 1.9s; }
.card:nth-child(20) { --gradient: linear-gradient(135deg, #f43f5e, #e11d48); --shadow: rgba(244, 63, 94, 0.3); animation-delay: 2.0s; }
.card:nth-child(21) { --gradient: linear-gradient(135deg, #1b7bdc, #5468f2); --shadow: rgba(27,123,220,0.3); animation-delay: 2.1s; }
.card:nth-child(22) { --gradient: linear-gradient(135deg, #84cc16, #22c55e); --shadow: rgba(132, 204, 22, 0.3); animation-delay: 2.2s; }
.card:nth-child(23) { --gradient: linear-gradient(135deg, #7d8df5, #596ef3); --shadow: rgba(125,141,245,0.3); animation-delay: 2.3s; }
.card:nth-child(24) { --gradient: linear-gradient(135deg, #ff9933, #f59e0b); --shadow: rgba(255,153,51,0.3); animation-delay: 2.4s; }
.card:nth-child(25) { --gradient: linear-gradient(135deg, #2dd4bf, #34d399); --shadow: rgba(45, 212, 191, 0.3); animation-delay: 2.5s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.back-button .material-icons {
    color: white;
    font-size: 24px;
}

.category-section {
    margin-bottom: 48px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #c9d2dc;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(43,139,230,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title .material-icons {
    color: #2b8be6;
}
