/* Custom Styles for Menopause Academy - Modern Design */

:root {
    --primary-color: #684193;
    --secondary-color: #B09BD0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-purple: #F3EFFA;
    --text-dark: #2D1B4E;
    --gradient-primary: linear-gradient(135deg, #684193 0%, #B09BD0 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FAFBFC 0%, #F3EFFA 100%);
    color: var(--text-dark);
}

main {
    flex: 1;
}

/* Navbar - Modern Glass Effect */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(104, 65, 147, 0.1);
    box-shadow: 0 2px 20px rgba(104, 65, 147, 0.08);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color) !important;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(104, 65, 147, 0.05);
}

.nav-link.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white !important;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 65, 147, 0.3);
}

/* Buttons - Modern Styled */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(104, 65, 147, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 65, 147, 0.35);
    background: linear-gradient(135deg, #5a3780 0%, #9d88bd 100%);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

/* Cards - Modern Shadow Style */
.card {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 24px rgba(104, 65, 147, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(104, 65, 147, 0.15);
}

.card-body {
    padding: 2rem;
}

.card .shadow {
    box-shadow: 0 8px 32px rgba(104, 65, 147, 0.12) !important;
}

/* Auth Pages - Login/Register */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(104, 65, 147, 0.15);
}

.auth-card .card-body {
    padding: 3rem;
}

.auth-logo {
    max-width: 180px;
    margin: 0 auto 1.5rem;
    display: block;
}

.auth-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Forms - Modern Input Style */
.form-control {
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #FAFBFC;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(104, 65, 147, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 6px;
}

/* Premium Badge */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.badge-primary {
    background: var(--gradient-primary);
}

/* Content Cards */
.content-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.content-card img {
    transition: transform 0.4s ease;
    height: 220px;
    object-fit: cover;
}

.content-card:hover img {
    transform: scale(1.1);
}

.content-card .card-body {
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Alerts - Modern Style */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background-color: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

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

/* Admin Sidebar */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-width: 260px;
    max-width: 260px;
    background: var(--gradient-primary);
    color: white;
    transition: margin 0.25s ease-out;
    box-shadow: 4px 0 20px rgba(104, 65, 147, 0.15);
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#sidebar-wrapper .list-group-item {
    background: transparent;
    border: none;
    color: white;
    font-weight: 500;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

#sidebar-wrapper .list-group-item:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 30px;
}

#sidebar-wrapper .list-group-item i {
    margin-right: 10px;
    width: 20px;
}

#page-content-wrapper {
    min-width: 0;
    width: 100%;
    background: #F8F9FA;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: -260px;
}

/* Footer */
footer {
    background: #B09BD0 !important;
    color: #684193;
    padding: 30px 0;
    margin-top: 60px;
}

footer a {
    color: #684193;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #5a3780;
}

/* Loading Spinner */
.spinner-border {
    border-color: var(--secondary-color);
    border-right-color: transparent;
}

/* Hover Effects */
.hover-shadow:hover {
    box-shadow: 0 1rem 2rem rgba(104, 65, 147, 0.15) !important;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-purple);
    color: var(--primary-color);
    font-weight: 700;
    border: none;
}

/* Content Text Styling */
.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.content-text p {
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -260px;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .auth-card .card-body {
        padding: 2rem 1.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

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

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(104, 65, 147, 0.15);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--primary-color);
}

/* Premium Button Pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.btn-warning {
    animation: pulse 2s infinite;
}