/* Modern Minecraft Launcher - Crystalline Purple & Black Theme */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-purple: #8b5cf6;
    --primary-purple-light: #a855f7;
    --primary-purple-dark: #7c3aed;
    --accent-purple: #c084fc;
    --dark-bg: #0f0f1a;
    --darker-bg: #0a0a12;
    --card-bg: rgba(26, 10, 45, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Effects */
    --glow-primary: 0 0 15px rgba(139, 92, 246, 0.5);
    --glow-secondary: 0 0 25px rgba(139, 92, 246, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #1a0a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Crystalline Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 20%),
        url('../images/backgrand.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.7));
    transition: var(--transition);
}

.logo:hover img {
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.9));
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-purple), var(--primary-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: 0.5s;
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.nav a.btn {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-purple-light));
    box-shadow: var(--glow-primary);
}

.nav a.btn:hover {
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px) scale(1.05);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 220px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    margin-top: 10px;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition-slow);
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(139, 92, 246, 0.2);
    padding-left: 25px;
}

/* ===== CRYSTALLINE CARDS ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 25px 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        rgba(192, 132, 252, 0.1), 
        rgba(139, 92, 246, 0.1), 
        transparent);
    z-index: -1;
    border-radius: var(--border-radius);
    animation: borderAnimation 3s linear infinite;
    opacity: 0.7;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-secondary);
}

.card.glow {
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.card.glow:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.5), var(--shadow-lg);
}

.card h2, .card h3, .card h4 {
    color: var(--accent-purple);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.card h2::after, .card h3::after, .card h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    border-radius: 3px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-purple-light));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--glow-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--glow-secondary), 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(45deg, #374151, #4b5563);
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #4b5563, #6b7280);
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger), #f87171);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(45deg, #f87171, #fecaca);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: var(--glow-primary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-purple);
    font-weight: 600;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ===== SLOTS ===== */
.slots-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.slot {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-sm);
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.slot:hover {
    border-color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.slot-premium {
    background: rgba(139, 92, 246, 0.1);
}

.slot-locked {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.slot-content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slot-content img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    object-fit: cover;
}

.slot-content img[src*="capes/"] {
    width: 64px;
    height: 32px;
}

.slot-plus {
    font-size: 2rem;
    color: var(--accent-purple);
    opacity: 0.7;
    transition: var(--transition);
}

.slot:hover .slot-plus {
    opacity: 1;
    transform: scale(1.1);
}

.slot-lock {
    font-size: 1.5rem;
    color: #6b7280;
}

.slot-locked .slot-lock {
    color: #4b5563;
}

.slot-actions {
    padding: 5px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.slot-actions .btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.modal-content {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 35px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-purple);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: 20px;
    right: 25px;
}

.close:hover {
    color: var(--primary-purple);
    transform: rotate(90deg);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-purple));
    color: white;
    box-shadow: var(--glow-primary);
}

/* ===== ALERTS ===== */
.alert {
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin: 25px 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    transition: var(--transition);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.alert:hover::before {
    transform: translateX(100%);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: #fca5a5;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--info);
    color: #93c5fd;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    color: #fcd34d;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.table th,
.table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: var(--transition);
}

.table th {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* ===== IMAGES & MEDIA ===== */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    object-fit: cover;
    image-rendering: pixelated;
    box-shadow: var(--glow-primary);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-secondary);
}

.profile-image-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    object-fit: cover;
    image-rendering: pixelated;
    transition: var(--transition);
}

.minecraft-skin,
.minecraft-cape {
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    image-rendering: pixelated;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: var(--glow-primary);
    transition: var(--transition);
}

.minecraft-skin {
    width: 128px;
    height: 128px;
}

.minecraft-cape {
    width: 128px;
    height: 64px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--glow-primary);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--glow-secondary);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--glow-primary);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 4px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-purple);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: 20px;
    right: 25px;
}

.close:hover {
    color: var(--primary-purple);
    transform: rotate(90deg);
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(192, 132, 252, 0.05) 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-purple), var(--primary-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    transition: var(--transition);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    text-align: center;
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-purple);
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

/* ===== NOTIFICATION STYLES ===== */
.notification-icon {
    position: relative;
    margin-right: 20px;
}

.notification-icon a {
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
    border: 2px solid #0f0f15;
}

.notification-badge.show {
    display: flex;
}

/* Estilos para tipos de notificações */
.notification-type.alert {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notification-type.security {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification-type.news {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notification-type.update {
    background-color: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.notification-type.mod {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-5 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .table th,
    .table td {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .alert {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 10px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .card h4 {
        font-size: 1.1rem;
    }
    
    .nav a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .card {
        padding: 15px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .slide-in,
    .pulse {
        animation: none;
    }
}

/* High contrast mode for better accessibility */
@media (prefers-contrast: high) {
    :root {
        --card-bg: rgba(0, 0, 0, 0.9);
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
    }
    
    .card {
        border: 2px solid var(--primary-purple);
    }
    
    .btn {
        border: 2px solid transparent;
    }
    
    .btn:hover {
        border-color: var(--accent-purple);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0a12;
        --darker-bg: #05050a;
        --card-bg: rgba(20, 10, 35, 0.8);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-purple);
}

.text-accent {
    color: var(--accent-purple);
}

.text-secondary {
    color: var(--text-secondary);
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.py-40 {
    padding: 40px 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-purple), var(--accent-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple-light);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) rgba(0, 0, 0, 0.1);
}

