
html.dark .cart-item-card {
    background: var(--bs-card-bg);
    border-color: var(--bs-card-border-color);
    color: var(--bs-card-color);
}

html.dark .cart-item-card .card-header {
    background: linear-gradient(135deg, rgba(131, 80, 239, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-bottom-color: rgba(131, 80, 239, 0.2);
}

html.dark .cart-course-title {
    color: #a78bfa;
}

html.dark .cart-item-card .card-body {
    color: var(--bs-card-color);
}

html.dark .amenities-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

html.dark .amenities-section h6 {
    color: #94a3b8;
}

html.dark .list-group-item {
    background: transparent;
    color: var(--bs-card-color);
    border-color: rgba(148, 163, 184, 0.1);
}

html.dark .checkout-summary-card .card-body {
    background: rgba(15, 23, 42, 0.95);
    color: var(--bs-card-color);
}

html.dark .checkout-summary-card .card-body .text-muted {
    color: #94a3b8 !important;
}

html.dark .grand-total-amount {
    color: #a78bfa;
}

html.dark .discount-applied {
    background: rgba(34, 197, 94, 0.15);
    color: #10b981;
}

/* Dark mode for promo section */
html.dark .promo-section {
    background: rgba(131, 80, 239, 0.1);
    border-color: rgba(131, 80, 239, 0.2);
}

html.dark .promo-section .form-label {
    color: #e2e8f0;
}

html.dark .promo-section .form-control {
    background-color: #0b1324;
    color: #e2e8f0;
    border-color: #334155;
}

html.dark .promo-section .form-control:focus {
    background-color: #0b1324;
    color: #e2e8f0;
    border-color: #a78bfa;
}

html.dark .promo-section .form-control::placeholder {
    color: #94a3b8;
}

html.dark .promo-section .btn-outline-primary {
    color: #a78bfa;
    border-color: #a78bfa;
}

html.dark .promo-section .btn-outline-primary:hover {
    background-color: #a78bfa;
    border-color: #a78bfa;
    color: #0b1220;
}

/* Dark mode for terms section */
html.dark .terms-section {
    background: rgba(131, 80, 239, 0.05);
    border-color: rgba(131, 80, 239, 0.15);
}

html.dark .terms-section .form-check-label {
    color: var(--bs-card-color);
}

html.dark .terms-section .form-check-label a {
    color: #a78bfa;
}

html.dark .terms-section .form-check-label a:hover {
    color: #c4b5fd;
}

/* Dark mode for empty cart */
html.dark .empty-cart-card {
    background: var(--bs-card-bg);
    border-color: rgba(131, 80, 239, 0.3);
    color: var(--bs-card-color);
}

html.dark .empty-cart-icon {
    color: #64748b;
}

html.dark .empty-cart-card h4 {
    color: #94a3b8;
}

html.dark .empty-cart-card p {
    color: #94a3b8;
}

/* Dark mode for promo messages */
html.dark #promo-message.text-success {
    color: #10b981 !important;
}

html.dark #promo-message.text-danger {
    color: #ef4444 !important;
}

/* Dark mode for text colors */
html.dark .text-muted {
    color: #94a3b8 !important;
}

html.dark .text-primary {
    color: #a78bfa !important;
}

html.dark .text-success {
    color: #10b981 !important;
}

html.dark .text-danger {
    color: #ef4444 !important;
}

/* Dark mode for hero section text */
html.dark .hero-section h1,
html.dark .hero-section h2,
html.dark .hero-section h3,
html.dark .hero-section h4,
html.dark .hero-section h5,
html.dark .hero-section h6 {
    color: #f8fafc !important;
}

html.dark .hero-section p,
html.dark .hero-section .lead {
    color: #cbd5e1 !important;
}

/* Dark mode for section headings */
html.dark section h3,
html.dark section h4,
html.dark section h5,
html.dark section h6 {
    color: var(--bs-heading-color) !important;
}

/* Dark mode for buttons */
html.dark .btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
    background-color: transparent;
}

html.dark .btn-outline-danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #0b1220;
}

html.dark .btn-outline-danger:active,
html.dark .btn-outline-danger:focus {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #0b1220;
    box-shadow: none;
}

html.dark .btn-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border-color: #a78bfa;
    color: #ffffff;
}

html.dark .btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    color: #ffffff;
}

html.dark .btn-primary i,
html.dark .btn-primary:hover i {
    color: #ffffff !important;
}

.btn-primary i,
.btn-primary:hover i,
.btn-primary:active i,
.btn-primary:focus i {
    color: #ffffff !important;
}

/* Dark mode for form elements */
html.dark .form-check-input {
    background-color: #0b1324;
    border-color: #334155;
}

html.dark .form-check-input:checked {
    background-color: #a78bfa;
    border-color: #a78bfa;
}

html.dark .form-check-input:focus {
    border-color: #a78bfa;
}

/* Dark mode for borders and dividers */
html.dark .border-top {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

html.dark .border-bottom {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

/* Dark mode for price display */
html.dark .fw-semibold[style*="color: #7c3aed"] {
    color: #a78bfa !important;
}

html.dark .fw-bold[style*="color: #7c3aed"] {
    color: #a78bfa !important;
}

html.dark .checkout-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

html.dark .checkout-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

html.dark .checkout-btn:focus {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

/* Remove Button Styling */
.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: transparent !important;
}

.btn-outline-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-outline-danger:active,
.btn-outline-danger:focus,
.btn-outline-danger:visited {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: none !important;
}

/* Cart Item Cards */
.cart-item-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    border-color: rgba(131, 80, 239, 0.2);
}

.cart-item-card .card-header {
    background: linear-gradient(135deg, rgba(131, 80, 239, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-bottom: 1px solid rgba(131, 80, 239, 0.1);
    padding: 1rem;
}

.cart-course-title {
    color: #7c3aed;
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-item-card .card-body {
    padding: 1.5rem;
}

/* Amenities Section */
.amenities-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.amenities-section h6 {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-group-item {
    background: transparent;
    padding: 0.75rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Checkout Summary Card */
.checkout-summary-card {
    background: linear-gradient(135deg, #8350ef 0%, #7c3aed 100%);
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 2rem;
}

.checkout-summary-card .card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: none;
    padding: 1.5rem;
}

.checkout-summary-card .card-body {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    color: #1e293b;
}

.grand-total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
    margin: 0.5rem 0;
}

.discount-applied {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

/* Promo Code Section */
.promo-section {
    background: rgba(131, 80, 239, 0.05);
    border: 1px solid rgba(131, 80, 239, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.promo-section .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.promo-section .form-control {
    border: 1px solid rgba(131, 80, 239, 0.2);
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.promo-section .form-control:focus {
    border-color: #7c3aed;
}

.promo-section .btn-outline-primary {
    border-color: #7c3aed;
    color: #7c3aed;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.promo-section .btn-outline-primary:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

/* Terms Section */
.terms-section {
    background: rgba(131, 80, 239, 0.02);
    border: 1px solid rgba(131, 80, 239, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.terms-section .form-check-input:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.terms-section .form-check-input:focus {
    border-color: #7c3aed;
}

.terms-section .form-check-label a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

.terms-section .form-check-label a:hover {
    text-decoration: underline;
}

/* Checkout Button */
.checkout-btn {
    background: linear-gradient(135deg, #8350ef 0%, #7c3aed 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    transform: translateY(-2px);
}

.checkout-btn:focus {
    background: linear-gradient(135deg, #8350ef 0%, #7c3aed 100%);
    color: white;
}

/* Empty Cart */
.empty-cart-card {
    background: white;
    border-radius: 16px;
    border: 2px dashed rgba(131, 80, 239, 0.2);
    padding: 3rem 2rem;
    text-align: center;
}

.empty-cart-icon {
    color: #94a3b8;
}

.empty-cart-card h4 {
    color: #64748b;
    font-weight: 600;
}

.empty-cart-card .btn-primary {
    background: linear-gradient(135deg, #8350ef 0%, #7c3aed 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #ffffff;
}

.empty-cart-card .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    color: #ffffff;
}

.empty-cart-card .btn-primary i,
.empty-cart-card .btn-primary:hover i {
    color: #ffffff !important;
}

/* Promo Message Styling */
#promo-message {
    font-weight: 500;
}

#promo-message.text-success {
    color: #059669 !important;
}

#promo-message.text-danger {
    color: #dc2626 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grand-total-amount {
        font-size: 2.5rem;
    }
    
    .grand-total-card .card-body {
        padding: 1.5rem;
    }
    
    .cart-item-card .card-header,
    .cart-item-card .card-body {
        padding: 1rem;
    }
    
    .promo-section,
    .terms-section {
        padding: 1rem;
    }
    
    .checkout-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* RTL Support for Input Group */
[dir="rtl"] .input-group {
    direction: rtl;
}

[dir="rtl"] .input-group .form-control {
    text-align: right;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

[dir="rtl"] .input-group .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

[dir="rtl"] .input-group .form-control:focus {
    z-index: 3;
}

[dir="rtl"] .input-group .btn:focus {
    z-index: 4;
}

/* RTL Support for Promo Button */
[dir="rtl"] .promo-section .btn-outline-primary {
    color: #7c3aed !important;
    border-color: #7c3aed !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
}

[dir="rtl"] .promo-section .btn-outline-primary:hover {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: white !important;
}

/* LTR Support for Promo Button */
[dir="ltr"] .promo-section .btn-outline-primary {
    color: #7c3aed !important;
    border-color: #7c3aed !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

[dir="ltr"] .promo-section .btn-outline-primary:hover {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: white !important;
}

/* General Promo Button Fix */
.promo-section .btn-outline-primary {
    color: #7c3aed !important;
    border-color: #7c3aed !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.promo-section .btn-outline-primary:hover {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: white !important;
}