/* E-Modules Shared Styles */
:root {
    --primary-blue: #0056a6;
    --secondary-blue: #0077cc;
    --light-blue: #e6f2ff;
    --dark-blue: #001a33;
    --accent-gold: #d4af37;
    --accent-teal: #00a8a8;
    --accent-purple: #6a5acd;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Base Layout */
.emodule-container {
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    min-height: 100vh;
    padding: 20px 0;
    color: var(--white);
}

/* Header */
.emodule-header {
    background: linear-gradient(135deg, rgba(0, 86, 166, 0.9), rgba(0, 51, 102, 0.9));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(79, 195, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.emodule-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.emodule-header-content {
    position: relative;
    z-index: 1;
}

.emodule-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emodule-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Cards */
.emodule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
}

.emodule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 195, 247, 0.3);
}

.card-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 0.75rem;
    color: #4fc3f7;
}

/* Buttons */
.btn-emodule {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
}

.btn-emodule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 182, 246, 0.4);
    color: var(--white);
}

/* Calendar */
.calendar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .emodule-header {
        padding: 1.5rem 1rem;
    }
    
    .emodule-title {
        font-size: 2rem;
    }
    
    .emodule-card {
        padding: 1.25rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    background: rgba(255, 255, 255, 0.05);
}

.border-gradient::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    opacity: 0.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.8);
}
