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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 50%, #1a0000 100%);
    border-bottom: 2px solid #8b0000;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #e5e5e5;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #dc2626;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e5e5e5;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #dc2626;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #e5e5e5;
    background: rgba(220, 38, 38, 0.1);
}

.nav-link.primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 1px solid #dc2626;
}

.nav-link.primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Layout */
.layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    border-right: 1px solid #1f1f1f;
    padding: 2rem 0;
    position: fixed;
    height: calc(100vh - 72px);
    overflow-y: auto;
    top: 72px;
    left: 0;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-content {
    padding: 0 1.5rem;
}

/* Search */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #e5e5e5;
    transition: all 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-input::placeholder {
    color: #525252;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #525252;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

/* Sidebar Navigation */
.nav-section {
    margin-bottom: 2rem;
}

.nav-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-items {
    list-style: none;
}

.sidebar-link {
    display: block;
    padding: 0.625rem 0.75rem;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    border-radius: 6px;
    border-left: 3px solid transparent;
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #e5e5e5;
    border-left-color: #dc2626;
}

.sidebar-link.active {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border-left-color: #dc2626;
    font-weight: 500;
}

.sidebar-link.disabled {
    color: #404040;
    cursor: not-allowed;
    pointer-events: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 3rem;
    transition: margin-left 0.3s ease;
}

.sidebar.closed ~ .main-content {
    margin-left: 0;
}

.header {
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e5e5e5;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e5e5e5 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.125rem;
    color: #737373;
}

/* Tools Section */
.tools-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1f1f1f;
}

.tool-count {
    font-size: 0.875rem;
    color: #525252;
    font-weight: 400;
}

.tools-list {
    list-style: none;
}

.tool-item {
    margin-bottom: 0.5rem;
}

.tool-link {
    display: block;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2d2d2d;
    border-left: 3px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #e5e5e5;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(139, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-link:hover::before {
    opacity: 1;
}

.tool-link:hover {
    border-left-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.tool-link.expanded {
    padding-bottom: 1.5rem;
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.tool-description {
    font-size: 0.875rem;
    color: #737373;
    line-height: 1.6;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    position: relative;
    z-index: 1;
}

.tool-link.expanded .tool-description {
    max-height: 100px;
}

.tool-link.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* About Box */
.about-box {
    max-width: 800px;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2d2d2d;
    border-left: 3px solid #dc2626;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.about-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.about-box p {
    color: #a3a3a3;
    line-height: 1.7;
}

.about-box a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-box a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Footer */
.footer {
    color: #525252;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #1f1f1f;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 999;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .nav-link:not(.primary) {
        display: none;
    }
}

@media (max-width: 640px) {
    .navbar-right {
        gap: 0.25rem;
    }

    .logo {
        font-size: 1rem;
    }
}