@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --p-sky: #4AA3E8;
    --p-mid: #2F86C8;
    --p-gold: #F2C94C;
    --p-dark: #1A2B3C;
    --p-glass-bg: rgba(255, 255, 255, 0.7);
    --p-glass-border: rgba(255, 255, 255, 0.3);
    --p-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-inter);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--p-dark);
}

h1, h2, h3, h4, .section-title {
    font-family: var(--font-outfit);
    font-weight: 700;
}

/* Animations */
@keyframes p-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.p-animate-fade {
    animation: p-fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism Components */
.p-glass {
    background: var(--p-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--p-glass-border);
    box-shadow: var(--p-shadow);
}

.p-refined-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.p-refined-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--p-sky);
}

/* Premium Login Box */
.login-box.p-premium {
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-box.p-premium h2 {
    color: var(--p-mid);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-box.p-premium input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 1rem;
}

.login-box.p-premium input:focus {
    border-color: var(--p-sky);
    box-shadow: 0 0 0 4px rgba(74, 163, 232, 0.1);
    background: white;
}

.login-box.p-premium button {
    background: linear-gradient(135deg, var(--p-sky) 0%, var(--p-mid) 100%);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(47, 134, 200, 0.3);
}

.login-box.p-premium button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(47, 134, 200, 0.4);
}

/* Header & Navigation */
header.p-glass-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 3rem;
}

.role-badge.p-gold {
    background: var(--p-gold);
    color: var(--p-dark);
    font-weight: 700;
}

/* Module Grid */
.module-card.p-refined {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 180px;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.module-card.p-refined .module-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.module-card.p-refined:hover .module-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.module-card.p-refined .module-card-label {
    font-weight: 600;
    color: var(--p-dark);
    font-size: 1.1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--p-sky);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--p-mid);
}

/* Color Variants for Refined Cards */
.module-card.p-card-sky, .p-refined-card.p-card-sky {
    background: linear-gradient(135deg, var(--p-sky) 0%, #3a8fd4 100%);
    color: white;
    border: none;
}

.module-card.p-card-mid, .p-refined-card.p-card-mid {
    background: linear-gradient(135deg, var(--p-mid) 0%, #256ba1 100%);
    color: white;
    border: none;
}

.module-card.p-card-gold, .p-refined-card.p-card-gold {
    background: linear-gradient(135deg, var(--p-gold) 0%, #d4b042 100%);
    color: var(--p-dark);
    border: none;
}

.module-card.p-card-sky .module-card-label,
.module-card.p-card-mid .module-card-label {
    color: white;
}

.module-card.p-card-gold .module-card-label {
    color: var(--p-dark);
}

/* Enhanced Icons */
.module-card.p-refined .module-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1.25rem;
    font-size: 2.2rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.module-card.p-card-gold .module-card-icon {
    background: rgba(0, 0, 0, 0.05);
}

.module-card.p-refined:hover .module-card-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}
