/* ============================================
   TextStudio - Main Stylesheet
   ============================================ */

:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-light: #818cf8;
    --color-accent: #f59e0b;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Innovative Loader
   ============================================ */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    text-align: center;
}

.loader-text-morph {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 32px;
}

.loader-char {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    animation: charMorph 2s ease-in-out infinite;
    display: inline-block;
}

.loader-char:nth-child(1) { animation-delay: 0s; }
.loader-char:nth-child(2) { animation-delay: 0.1s; }
.loader-char:nth-child(3) { animation-delay: 0.2s; }
.loader-char:nth-child(4) { animation-delay: 0.3s; }
.loader-char:nth-child(5) { animation-delay: 0.4s; }
.loader-char:nth-child(6) { animation-delay: 0.5s; }
.loader-char:nth-child(7) { animation-delay: 0.6s; }
.loader-char:nth-child(8) { animation-delay: 0.7s; }
.loader-char:nth-child(9) { animation-delay: 0.8s; }
.loader-char:nth-child(11) { animation-delay: 1.0s; }

.loader-space {
    width: 12px;
}

@keyframes charMorph {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        color: white;
    }
    25% {
        transform: translateY(-12px) scale(1.1);
        color: var(--color-accent);
    }
    50% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    75% {
        transform: translateY(4px) scale(0.95);
        color: var(--color-primary-light);
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), white, var(--color-accent));
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loaderProgress 1.5s ease-in-out forwards, shimmer 1s linear infinite;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 48px 0 32px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 20px;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    list-style: none;
    margin-top: 8px;
}

.hero-features li {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ============================================
   Tools Section
   ============================================ */
.tools-section {
    padding: 0 0 64px;
    flex: 1;
}

.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.tool-tab {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.tool-tab:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--color-primary);
}

.tool-tab.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-icon {
    font-size: 1.25rem;
}

.tab-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 28px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.panel-header p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ============================================
   Form Elements
   ============================================ */
.textarea-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.tool-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 160px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: var(--color-surface);
}

.tool-textarea::placeholder {
    color: #94a3b8;
}

.textarea-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.tool-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--color-bg);
}

.tool-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: var(--color-surface);
}

.tool-input-sm {
    max-width: 100px;
}

.tool-select {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    background: var(--color-bg);
    cursor: pointer;
    min-width: 140px;
}

.tool-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    padding: 6px 12px;
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.06);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn-case {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    font-size: 0.8125rem;
}

.btn-case:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.06);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* ============================================
   Case Converter
   ============================================ */
.case-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Options Row
   ============================================ */
.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

.radio-label input,
.checkbox-label input {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

/* ============================================
   Find & Replace
   ============================================ */
.find-replace-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.replace-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.replace-count.success {
    color: var(--color-success);
}

/* ============================================
   Slug Generator
   ============================================ */
.slug-output {
    margin-top: 20px;
}

.slug-output label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.slug-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
}

.slug-result code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
    word-break: break-all;
}

/* ============================================
   Lorem Ipsum
   ============================================ */
.lorem-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.lorem-controls .input-group {
    margin-bottom: 0;
}

/* ============================================
   Student Section
   ============================================ */
.student-section {
    padding: 0 0 40px;
}

.student-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.student-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.student-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.student-content p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.student-note {
    font-size: 0.8125rem !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-style: italic;
}

/* ============================================
   SEO Section
   ============================================ */
.seo-section {
    padding: 0 0 48px;
}

.seo-details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.seo-summary {
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--transition);
}

.seo-summary::-webkit-details-marker {
    display: none;
}

.seo-summary::before {
    content: '▸ ';
    color: var(--color-primary);
}

.seo-details[open] .seo-summary::before {
    content: '▾ ';
}

.seo-summary:hover {
    background: var(--color-bg);
}

.seo-body {
    padding: 0 24px 24px;
    border-top: 1px solid var(--color-border);
}

.seo-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

.seo-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--color-text);
}

.seo-body p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.seo-list {
    padding-left: 20px;
    margin-bottom: 12px;
}

.seo-list li {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 6px;
}

.seo-faq {
    margin-top: 8px;
}

.seo-faq dt {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: 14px;
    color: var(--color-text);
}

.seo-faq dd {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 4px 0 0;
    padding-left: 0;
}

.seo-faq a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.seo-faq a:hover {
    text-decoration: underline;
}

.footer-student {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-student a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-student a:hover {
    text-decoration: underline;
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--color-error);
}

.toast.success {
    background: var(--color-success);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.made-in-india {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.india-flag {
    font-size: 1.25rem;
}

.footer-tools h3,
.footer-about h3 {
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-tools li {
    margin-bottom: 8px;
}

.footer-tools a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-tools a:hover {
    color: white;
}

.footer-about p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.author-link {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-note {
    font-style: italic;
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
    min-height: 60vh;
}

.error-content {
    text-align: center;
}

.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.error-digit {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.error-icon {
    font-size: clamp(3rem, 10vw, 5rem);
    animation: float 3s ease-in-out infinite;
}

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

.error-content h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.error-message {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.error-hint {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Loading State
   ============================================ */
.processing {
    position: relative;
    pointer-events: none;
}

.processing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.open {
        display: flex;
    }

    .main-nav {
        position: relative;
    }

    .tool-tab {
        min-width: calc(33.33% - 6px);
    }

    .tab-label {
        font-size: 0.6875rem;
    }

    .tool-panel {
        padding: 20px 16px;
    }

    .find-replace-controls {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-card {
        flex-direction: column;
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .tool-tab {
        min-width: calc(50% - 4px);
    }

    .case-buttons .btn-case {
        flex: 1 1 calc(50% - 4px);
        text-align: center;
    }
}
