/* ============================================
   PREMIUM PAGES STYLES
   Dark Theme with Glassmorphism
   For: GPA, Calendar, Study Plans, Bookmarks, Reviews, Profile, FAQ, Contact
   ============================================ */

/* CSS Variables - Match app theme colors */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141829;
    --bg-card: rgba(20, 24, 41, 0.6);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-primary: #2196f3;
    --accent-secondary: #0d47a1;
    --accent-hover: #42a5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Premium Theme Base */
.premium-theme {
    background: linear-gradient(135deg, #0a0e27 0%, #141829 50%, #1a1f3a 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Container */
.premium-theme .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Headings */
.premium-theme h1,
.premium-theme h2,
.premium-theme h3,
.premium-theme h4,
.premium-theme h5,
.premium-theme h6 {
    color: var(--text-primary);
}

/* Cards */
.premium-theme .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

/* Prevent white background on card hover in premium theme */
.premium-theme .card:hover {
    background: var(--bg-card) !important;
    background-color: rgba(20, 24, 41, 0.7) !important;
    color: var(--text-primary) !important;
}

.premium-theme .card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.premium-theme .card-body {
    background: transparent;
    color: var(--text-primary);
}

.premium-theme .card-footer {
    background: rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Form Controls */
.premium-theme .form-control,
.premium-theme .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.premium-theme .form-control:focus,
.premium-theme .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
    outline: none;
}

/* Windows dropdown fix for premium theme */
.premium-theme .form-select option {
    background-color: #1e1e2e !important;
    color: var(--text-primary) !important;
    padding: 0.5rem !important;
}

.premium-theme select.form-select option:hover,
.premium-theme select.form-select option:focus,
.premium-theme select.form-select option:checked {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

.premium-theme .form-control::placeholder {
    color: var(--text-muted) !important;
}

.premium-theme .form-label {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.premium-theme .form-text {
    color: var(--text-secondary) !important;
}

/* Buttons */
.premium-theme .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 25px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.premium-theme .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.premium-theme .btn-outline-primary {
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    background: transparent;
    border-radius: 25px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.premium-theme .btn-outline-primary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.premium-theme .btn-outline-secondary {
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 25px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.premium-theme .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.premium-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.premium-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

/* Tables */
.premium-theme .table {
    color: var(--text-primary) !important;
    background: transparent;
}

.premium-theme .table th {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.premium-theme .table td {
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
    background: transparent;
}

.premium-theme .table-dark {
    background: transparent !important;
}

.premium-theme .table-dark th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
}

.premium-theme .table-dark td {
    background: transparent !important;
    color: var(--text-secondary) !important;
}

/* Table row hover styles for premium theme */
.premium-theme .table-hover tbody tr:hover,
.premium-theme .table tbody tr:hover,
.premium-theme .course-row:hover,
body.premium-theme .course-row:hover,
body.premium-theme .table-hover tbody tr:hover,
body.premium-theme .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
}

.premium-theme .table-hover tbody tr:hover td,
.premium-theme .table tbody tr:hover td,
.premium-theme .course-row:hover td,
body.premium-theme .course-row:hover td {
    background-color: transparent !important;
    color: var(--text-primary) !important;
}

/* Ensure inputs in table rows remain visible on hover */
.premium-theme .course-row:hover input,
.premium-theme .course-row:hover select,
body.premium-theme .course-row:hover input,
body.premium-theme .course-row:hover select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Delete button - Remove red background on hover */
.premium-theme .delete-btn,
body.premium-theme .delete-btn {
    background: none !important;
    border: none !important;
    color: #f44336 !important;
}

.premium-theme .delete-btn:hover,
body.premium-theme .delete-btn:hover {
    background: none !important;
    background-color: transparent !important;
    color: #f44336 !important;
    opacity: 0.8;
    transform: scale(1.1);
}

/* Alerts */
.premium-theme .alert {
    background: rgba(33, 150, 243, 0.15) !important;
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.premium-theme .alert-info {
    background: rgba(33, 150, 243, 0.15) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
}

.premium-theme .alert-success {
    background: rgba(76, 175, 80, 0.15) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

.premium-theme .alert-danger {
    background: rgba(244, 67, 54, 0.15) !important;
    border-color: rgba(244, 67, 54, 0.3) !important;
}

.premium-theme .alert-warning {
    background: rgba(255, 152, 0, 0.15) !important;
    border-color: rgba(255, 152, 0, 0.3) !important;
}

/* Text Colors */
.premium-theme .text-muted {
    color: var(--text-muted) !important;
}

.premium-theme .text-secondary {
    color: var(--text-secondary) !important;
}

/* Modals */
.premium-theme .modal-content {
    background: rgba(20, 24, 41, 0.95) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border-radius: 20px !important;
}

.premium-theme .modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.premium-theme .modal-body {
    color: var(--text-primary) !important;
}

.premium-theme .modal-footer {
    border-top: 1px solid var(--border-color) !important;
}

.premium-theme .modal-title {
    color: var(--text-primary) !important;
}

.premium-theme .btn-close {
    filter: invert(1) !important;
    opacity: 0.7;
}

.premium-theme .btn-close:hover {
    opacity: 1;
}

/* Badges */
.premium-theme .badge {
    background: rgba(33, 150, 243, 0.15) !important;
    color: var(--accent-primary) !important;
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
}

/* List Groups */
.premium-theme .list-group-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.premium-theme .list-group-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.premium-theme .list-group-item.active {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: white !important;
}

/* Pagination */
.premium-theme .pagination .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.premium-theme .pagination .page-link:hover {
    background: rgba(33, 150, 243, 0.15) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.premium-theme .pagination .page-item.active .page-link {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: white !important;
}

/* GPA Specific Styles - Premium Glassmorphism */
body.premium-theme .gpa-card,
.premium-theme .gpa-card,
body.premium-theme #gpaCard .gpa-card {
    background: var(--bg-card) !important;
    background: rgba(20, 24, 41, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 2rem !important;
    margin-bottom: 0 !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease;
}

body.premium-theme .gpa-card:hover,
.premium-theme .gpa-card:hover,
body.premium-theme #gpaCard .gpa-card:hover,
body.premium-theme .gpa-card.card:hover,
.premium-theme .gpa-card.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(20, 24, 41, 0.7) !important;
    background-color: rgba(20, 24, 41, 0.7) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
}

/* Override any card hover styles that might make it white */
body.premium-theme #gpaCard .card:hover,
body.premium-theme #gpaCard .gpa-card:hover,
body.premium-theme #gpaCard .gpa-card.card:hover,
body.premium-theme #gpaCard .col-md-6 .card:hover,
body.premium-theme #gpaCard .col-md-6 .gpa-card:hover {
    background: rgba(20, 24, 41, 0.7) !important;
    background-color: rgba(20, 24, 41, 0.7) !important;
    background-image: none !important;
}

body.premium-theme .gpa-card h4,
.premium-theme .gpa-card h4 {
    color: var(--text-primary) !important;
}

body.premium-theme .gpa-card i,
.premium-theme .gpa-card i {
    color: var(--accent-primary) !important;
}

body.premium-theme .gpa-card small,
.premium-theme .gpa-card small {
    color: var(--text-secondary) !important;
}

body.premium-theme .gpa-card .fs-5,
.premium-theme .gpa-card .fs-5 {
    color: var(--text-primary) !important;
}

body.premium-theme .gpa-card .fw-bold,
.premium-theme .gpa-card .fw-bold {
    color: var(--text-primary) !important;
}

body.premium-theme .gpa-display,
.premium-theme .gpa-display {
    color: var(--accent-primary) !important;
    text-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    font-size: 4rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Override text-dark class in premium theme */
.premium-theme .text-dark {
    color: var(--text-primary) !important;
}

/* Calendar Specific Styles */
.premium-theme .hero-section {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
}

/* Study Plans Specific Styles */
.premium-theme .hero-section {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
    padding: 30px 0 !important;
}

.premium-theme .hero-title {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

.premium-theme .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.premium-theme .hero-content {
    color: white !important;
}

.premium-theme .hero-title {
    color: white !important;
}

.premium-theme .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.premium-theme .study-plans-section {
    background: transparent !important;
    padding: 80px 0 !important;
}

.premium-theme .section-title {
    text-align: center !important;
    margin-bottom: 60px !important;
}

.premium-theme .section-title h2 {
    color: var(--text-primary) !important;
    text-align: center !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.premium-theme .pdf-card,
.premium-theme .plan-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease;
    color: var(--text-primary) !important;
}

.premium-theme .pdf-card:hover,
.premium-theme .plan-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(20, 24, 41, 0.7) !important;
}

.premium-theme .pdf-title {
    color: var(--text-primary) !important;
}

.premium-theme .pdf-description {
    color: var(--text-secondary) !important;
}

.premium-theme .majors-container {
    border-top: 2px solid var(--border-color) !important;
}

.premium-theme .major-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    padding: 10px 15px !important;
}

.premium-theme .major-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(5px);
}

.premium-theme .major-item span {
    color: var(--text-primary) !important;
}

.premium-theme .major-link {
    color: var(--text-primary) !important;
}

.premium-theme .major-link:hover {
    color: var(--accent-primary) !important;
}

.premium-theme .major-item i {
    font-size: 1.5rem !important;
}

.premium-theme .major-item .d-flex {
    padding-left: 0.75rem !important;
}

[dir="rtl"] .premium-theme .major-item .d-flex {
    padding-left: 0 !important;
    padding-right: 0.75rem !important;
}

/* ============================================
   Academic Services Page Styles
   ============================================ */

/* Service Page Header */
.premium-theme .service-page-header {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%) !important;
    padding: 30px 0 20px 0 !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color) !important;
}

.premium-theme .service-page-header h1 {
    color: var(--text-primary) !important;
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
}

/* Service Content */
.premium-theme .service-content {
    padding: 60px 0 !important;
    background: transparent !important;
}

/* Step Cards */
.premium-theme .step-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .step-card::before {
    display: none !important;
}

.premium-theme .step-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(20, 24, 41, 0.7) !important;
}

.premium-theme .step-card h5 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.25rem !important;
    color: var(--text-primary) !important;
}

.premium-theme .step-card p {
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1.05rem !important;
}

/* Info Section */
.premium-theme .info-section {
    background: var(--bg-card) !important;
    padding: 1.75rem !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .info-section h6 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-primary) !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--accent-primary) !important;
}

/* Info Items */
.premium-theme .info-item {
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    margin-bottom: 0.75rem !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease !important;
    color: var(--text-secondary) !important;
}

.premium-theme .info-item:hover {
    border-color: var(--accent-primary) !important;
    background: rgba(33, 150, 243, 0.1) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-primary) !important;
}

/* Personal Data List */
.premium-theme .personal-data-list .data-item {
    padding: 0.875rem 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    border-left: 3px solid var(--accent-primary) !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

[dir="rtl"] .premium-theme .personal-data-list .data-item {
    border-left: none !important;
    border-right: 3px solid var(--accent-primary) !important;
}

.premium-theme .personal-data-list .data-item:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    transform: translateX(4px) !important;
    color: var(--text-primary) !important;
}

[dir="rtl"] .premium-theme .personal-data-list .data-item:hover {
    transform: translateX(-4px) !important;
}

/* Message Box */
.premium-theme .message-box {
    background: var(--bg-card) !important;
    border: 2px solid var(--accent-primary) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    font-size: 1.05rem !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text-secondary) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .message-box strong {
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
}

/* Waiting Info */
.premium-theme .waiting-info {
    background: rgba(40, 167, 69, 0.1) !important;
    border: 2px solid rgba(40, 167, 69, 0.3) !important;
    border-radius: 12px !important;
    padding: 1.75rem !important;
    box-shadow: var(--shadow-md) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .waiting-info h6 {
    color: #4caf50 !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    font-size: 1.15rem !important;
}

/* Receive Item */
.premium-theme .receive-item {
    padding: 1rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    color: var(--text-secondary) !important;
}

.premium-theme .receive-item:hover {
    border-color: var(--accent-primary) !important;
    background: rgba(33, 150, 243, 0.1) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-primary) !important;
}

.premium-theme .receive-item i {
    color: var(--accent-primary) !important;
    font-size: 1.3rem !important;
}

/* Contact Form Page */
.premium-theme .contact-container {
    max-width: 600px !important;
    margin: 50px auto !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 40px !important;
    transition: all 0.3s ease !important;
}

.premium-theme .contact-container:hover {
    border-color: var(--accent-primary) !important;
    box-shadow: var(--shadow-lg) !important;
}

.premium-theme .contact-title {
    text-align: center !important;
    color: var(--text-primary) !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 30px !important;
}

.premium-theme .contact-info {
    text-align: center !important;
    color: var(--text-secondary) !important;
    font-size: 1.1rem !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

.premium-theme .social-handle {
    color: var(--accent-primary) !important;
    font-weight: bold !important;
    margin-top: 10px !important;
}

.premium-theme .contact-form {
    margin-top: 30px !important;
}

.premium-theme .contact-form .form-group {
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.premium-theme .contact-form .form-label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    min-width: 120px !important;
    text-align: right !important;
}

[dir="rtl"] .premium-theme .contact-form .form-label {
    text-align: left !important;
}

.premium-theme .contact-form .form-control,
.premium-theme .contact-form .form-select {
    flex: 1 !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.premium-theme .contact-form .form-control::placeholder {
    color: var(--text-muted) !important;
}

.premium-theme .contact-form .form-control:focus,
.premium-theme .contact-form .form-select:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.premium-theme .contact-form .form-control.required,
.premium-theme .contact-form .form-select.required {
    border-color: #f44336 !important;
}

/* Windows dropdown fix for contact select */
.premium-theme .contact-form .form-select option {
    background-color: #1e1e2e !important;
    color: var(--text-primary) !important;
    padding: 0.5rem !important;
}

.premium-theme .contact-form select.form-select option:hover,
.premium-theme .contact-form select.form-select option:focus,
.premium-theme .contact-form select.form-select option:checked {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

.premium-theme .contact-form .required-asterisk {
    color: #f44336 !important;
    font-weight: bold !important;
}

.premium-theme .contact-form .submit-button {
    width: 100% !important;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    box-shadow: var(--shadow-sm) !important;
}

.premium-theme .contact-form .submit-button:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

.premium-theme .contact-form .submit-button:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.premium-theme .contact-form .loading-spinner {
    display: none !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

.premium-theme .contact-form .spinner-border {
    width: 2rem !important;
    height: 2rem !important;
    color: var(--accent-primary) !important;
}

@media (max-width: 768px) {
    .premium-theme .contact-container {
        margin: 20px !important;
        padding: 30px 20px !important;
    }
    
    .premium-theme .contact-form .form-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .premium-theme .contact-form .form-label {
        min-width: auto !important;
        text-align: left !important;
    }
    
    [dir="rtl"] .premium-theme .contact-form .form-label {
        text-align: right !important;
    }
    
    .premium-theme .contact-form .form-control,
    .premium-theme .contact-form .form-select {
        width: 100% !important;
    }
}

/* Contact Section (for other contact pages) */
.premium-theme .contact-section {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .contact-section:hover {
    border-color: var(--accent-primary) !important;
    box-shadow: var(--shadow-lg) !important;
}

.premium-theme .contact-item {
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    color: var(--text-secondary) !important;
}

.premium-theme .contact-item:hover {
    transform: translateY(-2px) !important;
    color: var(--text-primary) !important;
}

.premium-theme .contact-item i {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: var(--accent-primary) !important;
}

/* Back Button */
.premium-theme .back-button {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 25px !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease !important;
}

.premium-theme .back-button:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    transform: translateY(-2px) !important;
}

.premium-theme .major-item .fa-external-link-alt {
    font-size: 1rem !important;
}

.premium-theme .empty-state {
    color: var(--text-secondary) !important;
}

.premium-theme .empty-state i {
    color: var(--text-muted) !important;
}

.premium-theme .empty-state h3 {
    color: var(--text-primary) !important;
}

.premium-theme .empty-state p {
    color: var(--text-secondary) !important;
}

.premium-theme .pdf-icon {
    color: var(--accent-primary) !important;
    font-size: 4rem !important;
    margin-bottom: 1rem !important;
}

/* ============================================
   Calendar Index Page Styles
   ============================================ */

/* Hero Section */
.premium-theme .hero-section {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%) !important;
    padding: 80px 0 60px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color) !important;
}

.premium-theme .hero-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    color: var(--text-primary) !important;
}

.premium-theme .hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    color: var(--text-primary) !important;
}

.premium-theme .hero-subtitle {
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
    margin-bottom: 2rem !important;
    color: var(--text-secondary) !important;
}

/* Counter Cards */
.premium-theme .counter-card {
    background: var(--bg-card) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 25px !important;
    padding: 2rem !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.premium-theme .counter-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(20, 24, 41, 0.7) !important;
}

.premium-theme .reward-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    position: relative !important;
}

.premium-theme .reward-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, transparent 100%) !important;
    border-radius: 25px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.premium-theme .reward-card:hover {
    border-color: rgba(255, 152, 0, 0.4) !important;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2) !important;
}

.premium-theme .vacation-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    position: relative !important;
}

.premium-theme .vacation-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, transparent 100%) !important;
    border-radius: 25px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.premium-theme .vacation-card:hover {
    border-color: rgba(33, 150, 243, 0.4) !important;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.2) !important;
}

.premium-theme .counter-icon {
    text-align: center !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.premium-theme .counter-icon i {
    font-size: 2.5rem !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.6), 0 2px 10px rgba(33, 150, 243, 0.4) !important;
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.5)) !important;
}

.premium-theme .reward-card .counter-icon i {
    color: #FF9800 !important;
    text-shadow: 0 0 20px rgba(255, 152, 0, 0.6), 0 2px 10px rgba(255, 152, 0, 0.4) !important;
    filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.5)) !important;
}

.premium-theme .counter-content {
    text-align: center !important;
    color: var(--text-primary) !important;
    position: relative !important;
    z-index: 2 !important;
}

.premium-theme .counter-label {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    margin-bottom: 0.8rem !important;
}

.premium-theme .counter-text {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.premium-theme .counter-details {
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    background: rgba(33, 150, 243, 0.1) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 15px !important;
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
}

.premium-theme .reward-card .counter-details {
    background: rgba(255, 152, 0, 0.1) !important;
    border: 1px solid rgba(255, 152, 0, 0.3) !important;
}

/* Counters Section */
.premium-theme .counters-section {
    padding: 60px 0 !important;
    background: transparent !important;
}

.premium-theme .counters-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.premium-theme .counters-description {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

.premium-theme .counters-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Calendar Section */
.premium-theme .calendar-section {
    padding: 60px 0 !important;
    background: transparent !important;
}

.premium-theme .calendar-title {
    text-align: center !important;
    margin-bottom: 3rem !important;
    color: var(--text-primary) !important;
}

.premium-theme .calendar-table {
    background: var(--bg-card) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--border-color) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .calendar-header {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%) !important;
    color: var(--text-primary) !important;
    padding: 1.5rem !important;
    text-align: center !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .toggle-semester {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.premium-theme .toggle-semester:hover {
    background: rgba(33, 150, 243, 0.2) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    transform: translateY(-2px) !important;
}

/* Table Styles */
.premium-theme .table th {
    background: rgba(33, 150, 243, 0.2) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.premium-theme .table td {
    padding: 1rem !important;
    border: 1px solid var(--border-color) !important;
    vertical-align: middle !important;
    color: var(--text-secondary) !important;
}

.premium-theme .table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.premium-theme .table tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.1) !important;
    transition: background-color 0.3s ease !important;
    color: var(--text-primary) !important;
}

.premium-theme .date-cell {
    font-weight: 600 !important;
    color: var(--accent-primary) !important;
}

.premium-theme .day-cell {
    color: var(--text-secondary) !important;
    font-style: italic !important;
}

/* Service Cards - Premium Dark Glassmorphism like Counter Cards */
.premium-theme .service-card {
    transition: all 0.3s ease !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative !important;
    overflow: hidden !important;
}

.premium-theme .service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, transparent 100%) !important;
    border-radius: 25px !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.premium-theme .service-card:hover::before {
    opacity: 1 !important;
}

.premium-theme .service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(20, 24, 41, 0.7) !important;
}

.premium-theme .service-card .card-body {
    transition: all 0.3s ease !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    position: relative !important;
    z-index: 2 !important;
}

.premium-theme .service-card:hover .card-body {
    background: transparent !important;
}

.premium-theme .service-card i {
    transition: all 0.3s ease !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.4), 0 2px 10px rgba(33, 150, 243, 0.2) !important;
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.3)) !important;
}

.premium-theme .service-card:hover i {
    transform: scale(1.1) !important;
    color: var(--accent-hover) !important;
    text-shadow: 0 0 25px rgba(33, 150, 243, 0.6), 0 2px 10px rgba(33, 150, 243, 0.4) !important;
    filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.5)) !important;
}

.premium-theme .service-card h5,
.premium-theme .service-card h6,
.premium-theme .service-card p {
    color: var(--text-primary) !important;
}

/* ============================================
   Semester Page Styles
   ============================================ */

/* Semester Page Header */
.premium-theme .semester-page-header {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%) !important;
    padding: 30px 0 20px 0 !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color) !important;
}

.premium-theme .semester-page-header h1 {
    color: var(--text-primary) !important;
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
}

/* Semester Content */
.premium-theme .semester-content {
    padding: 60px 0 !important;
    background: transparent !important;
}

/* Event Type Badges */
.premium-theme .event-type {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    min-width: 80px !important;
    border: 1px solid transparent !important;
}

.premium-theme .event-type.holiday {
    background: rgba(198, 40, 40, 0.2) !important;
    color: #ff5252 !important;
    border-color: rgba(198, 40, 40, 0.3) !important;
}

.premium-theme .event-type.academic {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4caf50 !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

.premium-theme .event-type.registration {
    background: rgba(33, 150, 243, 0.2) !important;
    color: var(--accent-primary) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
}

.premium-theme .event-type.exam {
    background: rgba(255, 152, 0, 0.2) !important;
    color: #ff9800 !important;
    border-color: rgba(255, 152, 0, 0.3) !important;
}

.premium-theme .event-type small {
    color: var(--text-secondary) !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

/* Countdown Status Badges */
.premium-theme .countdown-status {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    min-width: 80px !important;
    border: 1px solid transparent !important;
}

.premium-theme .countdown-status.passed {
    background: rgba(198, 40, 40, 0.2) !important;
    color: #ff5252 !important;
    border-color: rgba(198, 40, 40, 0.3) !important;
}

.premium-theme .countdown-status.today {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4caf50 !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

.premium-theme .countdown-status.upcoming {
    background: rgba(33, 150, 243, 0.2) !important;
    color: var(--accent-primary) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
}

.premium-theme .countdown-time {
    font-size: 0.7rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* ============================================
   Profile Page Styles
   ============================================ */

/* Auth Card (Profile Cards) */
.premium-theme .auth-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .auth-card .card-header {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .auth-card .card-body {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* Profile Username */
.premium-theme .profile-username {
    color: var(--text-primary) !important;
}

/* Text Muted */
.premium-theme .text-muted {
    color: var(--text-secondary) !important;
}

/* Background Light (Stats Boxes) */
.premium-theme .bg-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.premium-theme .bg-light .h4,
.premium-theme .bg-light .h5 {
    color: var(--accent-primary) !important;
}

.premium-theme .bg-light .small,
.premium-theme .bg-light .text-muted {
    color: var(--text-secondary) !important;
}

/* Contributor Badge Card */
.premium-theme .card.border-success {
    background: var(--bg-card) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 12px !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .card.border-success .card-body {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.premium-theme .card.border-success .card-title {
    color: var(--text-primary) !important;
}

.premium-theme .card.border-success .text-warning {
    color: #FF9800 !important;
}

.premium-theme .card.border-success .text-primary {
    color: var(--accent-primary) !important;
}

.premium-theme .card.border-success .text-success {
    color: #4caf50 !important;
}

.premium-theme .card.border-success .small,
.premium-theme .card.border-success .text-muted {
    color: var(--text-secondary) !important;
}

/* User Info Section */
.premium-theme .user-info .border-bottom {
    border-color: var(--border-color) !important;
}

.premium-theme .user-info strong {
    color: var(--text-primary) !important;
}

.premium-theme .user-info .badge {
    border: 1px solid transparent !important;
}

/* Form Text (Help Text) */
.premium-theme .form-text {
    color: var(--text-secondary) !important;
}

/* Profile sidebar avatar (initial replaces fa-user-circle on profile page) */
.premium-theme .profile-card-avatar-wrap {
    display: flex;
    justify-content: center;
}

.premium-theme .profile-card-avatar-initial {
    display: inline-grid;
    place-items: center;
    width: 6.5rem;
    height: 6.5rem;
    padding: 0;
    border-radius: 50%;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: linear-gradient(145deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 0 22px rgba(33, 150, 243, 0.45), 0 4px 14px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    text-align: center;
    transform: translate(0.04em, 0.06em);
    border: none;
}

/* Profile Icon (still used elsewhere) */
.premium-theme .fa-user-circle {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.4) !important;
}

/* Form Controls - Unified Input Group (Same as Auth Pages) */
.premium-theme .form-control,
.premium-theme .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.premium-theme .form-control:focus,
.premium-theme .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1) !important;
    outline: none !important;
}

.premium-theme .form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Input Group - Unified Field and Icon */
.premium-theme .input-group {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

.premium-theme .input-group:focus-within {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1) !important;
}

.premium-theme .input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--accent-primary) !important;
    padding: 0.75rem 1rem !important;
}

.premium-theme .input-group .form-control {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    flex: 1 !important;
}

.premium-theme .input-group .form-control:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.premium-theme .input-group .form-select {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    flex: 1 !important;
}

.premium-theme .input-group .form-select:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* RTL Support for Input Groups */
[dir="rtl"] .premium-theme .input-group {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .premium-theme .input-group .form-control,
[dir="rtl"] .premium-theme .input-group .form-select {
    text-align: right !important;
}

[dir="rtl"] .premium-theme .input-group-text {
    border-left: none !important;
}

/* ============================================
   Analytics Dashboard Page Styles
   ============================================ */

/* Page Header */
.premium-theme .display-5 {
    color: var(--text-primary) !important;
}

.premium-theme .display-5 i {
    color: var(--accent-primary) !important;
}

/* Member Since Badge */
.premium-theme .member-since {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    display: inline-block !important;
    margin-bottom: 2rem !important;
    font-weight: 500 !important;
    border: 1px solid var(--border-color) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md) !important;
}

/* Stat Cards */
.premium-theme .stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    box-shadow: var(--shadow-md) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(20, 24, 41, 0.7) !important;
}

.premium-theme .stat-card .card-body {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.premium-theme .stat-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.4) !important;
}

.premium-theme .stat-number {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: var(--text-primary) !important;
}

.premium-theme .stat-label {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-theme .stat-card .text-muted {
    color: var(--text-secondary) !important;
}

.premium-theme .stat-card .text-muted i {
    color: var(--accent-primary) !important;
}

/* Section Title */
.premium-theme .section-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-primary) !important;
}

.premium-theme .section-title i {
    color: var(--accent-primary) !important;
}

/* Material Cards - Match premium-materials.css styles */
.premium-theme .material-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.premium-theme .material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.premium-theme .material-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(33, 150, 243, 0.3);
}

.premium-theme .material-card:hover::before {
    opacity: 1;
}

.premium-theme .material-card .card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.premium-theme .material-card .card-header h5 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.premium-theme .material-card:hover .card-header h5 {
    color: var(--accent-primary) !important;
}

.premium-theme .material-card .card-body {
    background: transparent;
    color: var(--text-primary);
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.premium-theme .material-card .card-footer {
    background: rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* Review Cards */
.premium-theme .review-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm) !important;
}

.premium-theme .review-card:hover {
    background: rgba(20, 24, 41, 0.7) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

/* Download Badge */
.premium-theme .download-badge {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(13, 71, 161, 0.3) 100%) !important;
    color: var(--accent-primary) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
}

/* Star Rating */
.premium-theme .star-rating {
    color: #ffc107 !important;
}

/* Achievement Badges */
.premium-theme .achievement-badge {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    margin: 0.5rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.premium-theme .achievement-badge:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
}

.premium-theme .achievement-badge.earned {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 237, 78, 0.2) 100%) !important;
    color: #ffd700 !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2) !important;
}

.premium-theme .achievement-badge.earned:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3) !important;
}

.premium-theme .badge-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    color: var(--accent-primary) !important;
}

.premium-theme .achievement-badge.earned .badge-icon {
    color: #ffd700 !important;
}

.premium-theme .badge-title {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
    color: var(--text-primary) !important;
}

.premium-theme .badge-description {
    font-size: 0.8rem !important;
    opacity: 0.9 !important;
    color: var(--text-secondary) !important;
}

.premium-theme .badge-progress {
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
    opacity: 0.8 !important;
    color: var(--text-secondary) !important;
}

.premium-theme .achievement-badge.honor-badge {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(238, 90, 36, 0.2) 50%, rgba(255, 159, 243, 0.2) 100%) !important;
    border: 3px solid rgba(255, 215, 0, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.premium-theme .achievement-badge.honor-badge::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transform: rotate(45deg) !important;
    animation: shimmer 3s infinite !important;
}

.premium-theme .achievement-badge.honor-badge.earned {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 237, 78, 0.3) 50%, rgba(255, 107, 107, 0.3) 100%) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 107, 107, 0.2) !important;
    animation: pulse 2s infinite !important;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Empty State */
.premium-theme .empty-state {
    text-align: center !important;
    padding: 3rem !important;
    color: var(--text-secondary) !important;
}

.premium-theme .empty-state i {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    opacity: 0.5 !important;
    color: var(--text-muted) !important;
}

/* RTL Support */
[dir="rtl"] .premium-theme .stat-label {
    letter-spacing: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .premium-theme .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
