/* ============================================
   ADVANCED UI COMPONENTS
   ============================================ */

:root {
    --primary-color: var(--gold-100);
    --primary-dark: var(--orange-200);
    --secondary-color: var(--darkslategray-300);
    --secondary-dark: var(--black-400);
    --bg-light: transparent;
    --bg-curve: transparent;
    --text-main: var(--white-100);
    --text-muted: var(--gainsboro-100);
    --border-color: #35660F;
    --shadow-sm: 0 2px 8px rgba(26, 46, 18, 0.1);
    --shadow-md: 0 4px 16px rgba(26, 46, 18, 0.15);
    --shadow-lg: 0 8px 32px rgba(26, 46, 18, 0.2);
    --transition: all 0.3s ease;
}

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode {
    --light-bg: #1a1a2e;
    --white: #0f0f1e;
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --border-color: #333333;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */

.btn-modern {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-modern-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-modern-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

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

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   MODERN CARDS
   ============================================ */

.card-modern {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-modern-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.card-modern-text {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress-bar-modern {
    background: var(--light-bg);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-modern-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ============================================
   TABS
   ============================================ */

.tabs-modern {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 0;
}

.tabs-modern-item {
    padding: 12px 24px;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.tabs-modern-item:hover {
    color: var(--primary-color);
}

.tabs-modern-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

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

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ============================================
   RATING STARS
   ============================================ */

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 18px;
}

.star {
    color: #ddd;
    transition: var(--transition);
}

.star.filled {
    color: var(--primary-color);
}

.star:hover {
    transform: scale(1.1);
}

/* ============================================
   BADGES
   ============================================ */

.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

.badge-danger {
    background: #f44336;
    color: white;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
}

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

.form-group-modern input,
.form-group-modern textarea,
.form-group-modern select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

/* ============================================
   MODALS
   ============================================ */

.modal-modern {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-modern.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-modern {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   NOTIFICATIONS/ALERTS
   ============================================ */

.alert-modern {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-modern {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   GRADIENTS
   ============================================ */

.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .card-modern {
        padding: 16px;
    }

    .btn-modern {
        padding: 10px 20px;
        font-size: 12px;
    }

    .tabs-modern {
        flex-wrap: wrap;
    }

    .tabs-modern-item {
        padding: 8px 16px;
        font-size: 12px;
    }

    .modal-content-modern {
        padding: 20px;
    }
}


/* ============================================
   SUCCESS MODAL POPUP
   ============================================ */

.shobdochitra-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeInModal 0.3s ease;
}

.shobdochitra-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.shobdochitra-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shobdochitra-modal-header {
    background: linear-gradient(135deg, #2d6a1f 0%, #1a4d2e 100%);
    color: white;
    padding: 30px 25px;
    text-align: center;
    border-bottom: 4px solid #d8be70;
}

.shobdochitra-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.shobdochitra-modal-body {
    padding: 35px 25px;
    text-align: center;
}

.shobdochitra-modal-body p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.success-details {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.success-details p {
    margin: 10px 0;
    font-size: 15px;
    color: #2e7d32;
}

.success-details p:first-child {
    margin-top: 0;
    font-weight: 600;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.shobdochitra-modal-footer {
    padding: 20px 25px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.modal-close-btn {
    background: linear-gradient(135deg, #d8be70 0%, #c9a760 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 190, 112, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 190, 112, 0.4);
    background: linear-gradient(135deg, #c9a760 0%, #b89650 100%);
}

.modal-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(216, 190, 112, 0.3);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .shobdochitra-modal-content {
        width: 95%;
        max-width: 100%;
    }

    .shobdochitra-modal-header h2 {
        font-size: 24px;
    }

    .shobdochitra-modal-body {
        padding: 25px 20px;
    }

    .success-details {
        padding: 15px;
    }

    .modal-close-btn {
        width: 100%;
        padding: 12px 20px;
    }
}
