/* SmartEducation.SBS - Global Styles */

* {
    color: #ffffff !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #ffffff !important;
}

p, span, div, h1, h2, h3, h4, h5, h6, a, label, button, input, textarea {
    color: #ffffff !important;
}

/* ===================== */
/* SaaS Dashboard Styles */
/* ===================== */

.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
}

.glassmorphism {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.blueprint-bg {
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: -1px -1px;
}

.neon-accent {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    border: 1px solid rgba(14, 165, 233, 0.5);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

.premium-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.loader {
    border: 3px solid rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================== */
/* Form Elements */
/* ===================== */

input[type="text"],
input[type="email"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Radio Buttons */
input[type="radio"] {
    accent-color: #0ea5e9;
}

/* ===================== */
/* Responsive */
/* ===================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 100vw;
        max-width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 40;
        transform-origin: left;
    }

    main {
        margin-left: 0 !important;
        padding-bottom: 120px !important;
    }

    .blueprint-bg {
        background-size: 30px 30px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop tabs, show mobile tabs */
    .lg\:hidden {
        display: block !important;
    }

    .lg\:flex {
        display: flex !important;
    }

    /* Adjust content for mobile */
    main {
        width: 100%;
        padding: 1rem !important;
        padding-bottom: 100px !important;
        margin-left: 0 !important;
    }

    /* Card grid adjustments */
    .grid {
        grid-template-columns: 1fr !important;
    }

    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Font sizes for mobile */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    /* Buttons spacing */
    button {
        padding: 0.75rem !important;
    }

    /* Input fields */
    input, textarea {
        padding: 0.75rem !important;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Sidebar drawer transition */
    aside {
        transition: transform 0.3s ease-in-out;
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        top: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    /* Mobile navigation tabs at bottom */
    nav.bottom-tabs {
        display: flex;
        justify-content: space-around;
        background: rgba(30, 41, 59, 0.9);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(148, 163, 184, 0.1);
        padding: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
    }

    nav.bottom-tabs button {
        flex: 1;
        padding: 0.75rem !important;
        border-top: 2px solid transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    nav.bottom-tabs button.active {
        color: #0ea5e9;
        border-top-color: #0ea5e9;
    }

    /* Adjust grid for filters */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Better touch targets */
    button, input {
        min-height: 44px;
        min-width: 44px;
    }

    /* Footer positioning */
    footer {
        font-size: 0.75rem !important;
        padding: 0.75rem !important;
        left: 0 !important;
    }

    /* Better spacing for cards */
    .glassmorphism {
        padding: 1rem !important;
    }

    /* Avatar sizes */
    img.avatar {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0.75rem !important;
    }

    h1 {
        font-size: 1.25rem !important;
    }

    h2 {
        font-size: 1rem !important;
    }

    .grid {
        gap: 0.75rem !important;
    }

    .glassmorphism {
        padding: 0.75rem !important;
    }

    /* Hide user section on very small screens */
    .user-section {
        display: none;
    }

    /* Adjust sidebar padding */
    aside {
        padding: 0 !important;
    }

    aside .p-6 {
        padding: 1rem !important;
    }
}
