/* ============================================
   NUSUKI - HAJJ & UMRAH SERVICES PLATFORM
   Clean Design with Makkah Images (No Patterns)
   ============================================ */

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

body {
    font-family: 'Segoe UI', 'Dubai', 'Tahoma', Geneva, Verdana, sans-serif;
    /* Background with your Makkah image */
    background-image: url('mecca2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Dark overlay for better text readability - NO PATTERN */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 111, 60, 0.80) 0%,
        rgba(0, 0, 0, 0.70) 50%,
        rgba(13, 111, 60, 0.80) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* REMOVED: Islamic Pattern Overlay (yellow cubes) */
/* body::after removed completely */

/* Login/Register Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 50px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 215, 0, 0.4);
}

/* Add Mekkah logo to header */
.header::before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    background-image: url('Mekkah-logo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

.header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffd700;
}

.tagline {
    font-size: 1.3em;
    opacity: 0.95;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    color: #ffd700;
    font-weight: 600;
}

/* Login/Register Box */
.login-box, .register-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
    border: 3px solid #ffd700;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-box::before, .register-box::before {
    content: '🕋';
    position: absolute;
    top: -40px;
    right: 20px;
    font-size: 5em;
    opacity: 0.1;
    transform: rotate(-15deg);
}

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

.login-box h2, .register-box h2 {
    margin-bottom: 10px;
    color: #0d6f3c;
    font-size: 2.2em;
    text-align: center;
}

.welcome-text {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0d6f3c;
    font-weight: 700;
    font-size: 0.95em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #0d6f3c;
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 111, 60, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-small {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(13, 111, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 111, 60, 0.4);
    background: linear-gradient(135deg, #0a5a2f 0%, #147a3f 100%);
}

.btn-secondary {
    width: 100%;
    background: #f5f5f5;
    color: #0d6f3c;
    margin-top: 10px;
    border: 2px solid #0d6f3c;
}

.btn-secondary:hover {
    background: #0d6f3c;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #ffd700;
    color: #0d6f3c;
}

.btn-small:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* Features List */
.features {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.features h3 {
    color: #0d6f3c;
    margin-bottom: 18px;
    font-size: 1.3em;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    padding-left: 5px;
}

.features li::before {
    content: '✓';
    color: #0d6f3c;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, rgba(13, 111, 60, 0.95) 0%, rgba(26, 143, 79, 0.95) 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #ffd700;
    backdrop-filter: blur(15px);
}

.navbar .nav-brand {
    font-size: 2em;
    font-weight: bold;
    color: white;
    float: left;
    margin-left: 35px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .nav-brand::before {
    content: '';
    display: inline-block;
    width: 45px;
    height: 45px;
    background-image: url('Mekkah-logo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid #ffd700;
}

.navbar .nav-menu {
    list-style: none;
    float: right;
    margin-right: 35px;
    display: flex;
    gap: 10px;
}

.navbar .nav-menu li {
    display: inline;
}

.navbar .nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.95em;
}

.navbar .nav-menu a:hover, .navbar .nav-menu a.active {
    background: rgba(255, 215, 0, 0.9);
    color: #0d6f3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.navbar .nav-menu a.logout {
    background: rgba(255, 255, 255, 0.2);
}

.navbar .nav-menu a.logout:hover {
    background: #d32f2f;
    color: white;
}

.navbar::after {
    content: "";
    display: table;
    clear: both;
}

/* Dashboard Container - Clean, No Pattern */
.dashboard-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 45px 25px;
    background: rgba(255, 255, 255, 0.98);
    min-height: calc(100vh - 80px);
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    position: relative;
}

/* REMOVED: Kaaba logo pattern background */
/* dashboard-container::before removed */

.dashboard-container > * {
    position: relative;
    z-index: 1;
}

.welcome-section {
    margin-bottom: 45px;
    padding: 30px;
    background-image: url('mecca.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 111, 60, 0.3);
    position: relative;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 111, 60, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    border-radius: 20px;
    z-index: 0;
}

.welcome-section h1, .welcome-section p, .welcome-section .current-location {
    position: relative;
    z-index: 1;
}

.welcome-section h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-section p {
    font-size: 1.3em;
    opacity: 0.95;
}

.current-location {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.location-icon {
    font-size: 1.3em;
    margin-right: 8px;
}

/* Prayer Times Card */
.prayer-times-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border: 3px solid #0d6f3c;
    position: relative;
    overflow: hidden;
}

.prayer-times-card::before {
    content: '🕌';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 10em;
    opacity: 0.1;
    transform: rotate(15deg);
}

.prayer-times-card h2 {
    color: #0d6f3c;
    margin-bottom: 25px;
    font-size: 2em;
    position: relative;
    z-index: 1;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

.prayer-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.prayer-item:hover {
    transform: translateY(-5px);
}

.prayer-item.active {
    background: #0d6f3c;
    color: white;
    box-shadow: 0 8px 25px rgba(13, 111, 60, 0.4);
}

.prayer-name {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.prayer-time {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #0d6f3c;
}

.prayer-item.active .prayer-time {
    color: #ffd700;
}

.next-prayer {
    display: block;
    font-size: 0.75em;
    margin-top: 5px;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 45px;
}

.stat-card {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(13, 111, 60, 0.3);
    transition: transform 0.3s;
    border: 2px solid #ffd700;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(13, 111, 60, 0.4);
}

.stat-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 3em;
    margin-bottom: 8px;
    color: #ffd700;
}

.stat-card p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Section */
.section {
    margin-bottom: 50px;
}

.section h2 {
    color: #0d6f3c;
    font-size: 2.2em;
    margin-bottom: 28px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffd700;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.action-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid #e0e0e0;
}

.action-card:hover {
    transform: translateY(-8px);
    border-color: #0d6f3c;
    box-shadow: 0 15px 40px rgba(13, 111, 60, 0.2);
}

.action-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.action-card h3 {
    color: #0d6f3c;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.action-card p {
    color: #666;
    font-size: 0.95em;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-item {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid #0d6f3c;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.schedule-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.schedule-time {
    text-align: center;
    min-width: 100px;
}

.time-badge {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(13, 111, 60, 0.3);
}

.schedule-time p {
    font-size: 1.2em;
    color: #0d6f3c;
    font-weight: bold;
}

.schedule-details h4 {
    color: #0d6f3c;
    margin-bottom: 6px;
    font-size: 1.2em;
}

.schedule-details p {
    color: #888;
    font-size: 0.95em;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.location-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border: 2px solid #0d6f3c;
}

.location-card h4 {
    color: #0d6f3c;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.location-card p {
    color: #0d6f3c;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    border: 3px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #0d6f3c;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.service-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 5em;
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    color: #0d6f3c;
    margin-bottom: 12px;
    font-size: 1.4em;
}

.service-info p {
    color: #666;
    margin-bottom: 10px;
}

.service-features {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.8em;
    color: #0d6f3c;
    font-weight: bold;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 28px;
    border: 2px solid #0d6f3c;
    background: white;
    color: #0d6f3c;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(13, 111, 60, 0.3);
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #0d6f3c;
    gap: 20px;
}

.booking-icon {
    font-size: 3em;
}

.booking-details {
    flex: 1;
}

.booking-details h4 {
    color: #0d6f3c;
    margin-bottom: 6px;
    font-size: 1.2em;
}

.booking-details p {
    color: #888;
    font-size: 0.95em;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 700;
    margin-top: 8px;
    display: inline-block;
}

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

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

/* Journey Selector */
.journey-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.journey-btn {
    padding: 16px 40px;
    border: 3px solid #0d6f3c;
    background: white;
    color: #0d6f3c;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.journey-btn.active, .journey-btn:hover {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 111, 60, 0.3);
}

/* Ritual Steps */
.ritual-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ritual-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 25px;
    border-left: 8px solid #0d6f3c;
    transition: all 0.3s;
}

.ritual-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13, 111, 60, 0.3);
}

.ritual-content {
    flex: 1;
}

.ritual-content h3 {
    color: #0d6f3c;
    margin-bottom: 10px;
    font-size: 1.6em;
}

.ritual-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.ritual-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.ritual-details h4 {
    color: #0d6f3c;
    margin-bottom: 12px;
}

.ritual-details ul {
    list-style-position: inside;
    color: #555;
    line-height: 1.8;
}

.ritual-details li {
    margin-bottom: 8px;
}

.btn-dua, .btn-audio, .btn-video, .btn-navigate, .btn-counter {
    padding: 10px 20px;
    margin-top: 15px;
    margin-right: 10px;
    border: 2px solid #ffd700;
    background: white;
    color: #0d6f3c;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-dua:hover, .btn-audio:hover, .btn-video:hover, .btn-navigate:hover, .btn-counter:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

.progress-check {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.progress-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #0d6f3c;
}

.progress-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Completion Card */
.completion-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
    border: 4px solid #0d6f3c;
}

.completion-icon {
    font-size: 6em;
    margin-bottom: 20px;
}

.completion-card h2 {
    color: #0d6f3c;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.completion-card p {
    color: #0d6f3c;
    font-size: 1.3em;
    margin-bottom: 25px;
}

/* Hajj Timeline */
.hajj-timeline {
    padding: 20px;
}

.timeline-day {
    background: white;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-left: 6px solid #0d6f3c;
}

.timeline-day.highlight {
    background: linear-gradient(135deg, #fff8dc 0%, #fffacd 100%);
    border-left-color: #ffd700;
    border-left-width: 10px;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

.day-badge {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(13, 111, 60, 0.3);
}

.timeline-day.highlight .day-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0d6f3c;
}

.timeline-day h3 {
    color: #0d6f3c;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.timeline-day ul {
    list-style-position: inside;
    color: #555;
    line-height: 1.9;
}

.timeline-day li {
    margin-bottom: 8px;
    padding-left: 10px;
}

/* Dua Grid */
.dua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dua-card {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #0d6f3c;
    text-align: center;
}

.dua-card h4 {
    color: #0d6f3c;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.arabic-text {
    font-size: 1.8em;
    color: #0d6f3c;
    margin: 15px 0;
    font-weight: bold;
    direction: rtl;
    line-height: 1.8;
}

.transliteration {
    font-style: italic;
    color: #666;
    margin: 10px 0;
    font-size: 1.1em;
}

.translation {
    color: #888;
    margin: 15px 0;
}

/* Profile Container */
.profile-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 35px;
}

.profile-sidebar {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 3px solid #0d6f3c;
    height: fit-content;
}

.avatar-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    font-weight: bold;
    margin: 0 auto 20px;
    border: 5px solid #ffd700;
    box-shadow: 0 10px 30px rgba(13, 111, 60, 0.3);
}

.hajj-avatar {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0d6f3c;
}

.profile-avatar h3 {
    color: #0d6f3c;
    margin-bottom: 8px;
    font-size: 1.5em;
}

.user-role {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.user-status {
    color: #0d6f3c;
    font-weight: 600;
    font-size: 0.95em;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 2.2em;
    color: #0d6f3c;
    font-weight: bold;
}

.stat-item span {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.journey-badge-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.journey-badge-section h4 {
    color: #0d6f3c;
    margin-bottom: 15px;
}

.journey-type-badge {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(13, 111, 60, 0.3);
}

.journey-type-badge span {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.journey-type-badge.umrah {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0d6f3c;
}

.profile-content {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.profile-form button {
    width: auto;
    align-self: flex-start;
}

/* Preferences */
.preference-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.preference-item:hover {
    border-color: #0d6f3c;
    box-shadow: 0 4px 15px rgba(13, 111, 60, 0.1);
}

.pref-text {
    flex: 1;
}

.pref-title {
    display: block;
    font-weight: 700;
    color: #0d6f3c;
    margin-bottom: 4px;
}

.pref-desc {
    font-size: 0.9em;
    color: #888;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #0d6f3c 0%, #1a8f4f 100%);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

/* Language Selector */
.language-selector {
    margin-top: 25px;
}

.language-selector label {
    display: block;
    color: #0d6f3c;
    font-weight: 700;
    margin-bottom: 10px;
}

.lang-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #0d6f3c;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    font-weight: 600;
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #0d6f3c;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    gap: 20px;
}

.history-item.active {
    background: linear-gradient(135deg, #fff8dc 0%, #fffacd 100%);
    border-left-color: #ffd700;
}

.history-icon {
    font-size: 3em;
}

.history-details {
    flex: 1;
}

.history-details h4 {
    color: #0d6f3c;
    margin-bottom: 6px;
    font-size: 1.2em;
}

.history-details p {
    color: #888;
    font-size: 0.95em;
}

.history-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #4caf50;
    color: white;
    border-radius: 8px;
    font-size: 0.85em;
    margin-top: 8px;
    font-weight: 600;
}

.history-badge.current {
    background: #ffd700;
    color: #0d6f3c;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.achievement-badge {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 3px solid #0d6f3c;
    transition: transform 0.3s;
}

.achievement-badge.earned:hover {
    transform: translateY(-8px) scale(1.05);
}

.achievement-badge.locked {
    opacity: 0.3;
    border-color: #ccc;
}

.badge-icon {
    font-size: 3.5em;
    display: block;
    margin-bottom: 12px;
}

.achievement-badge p {
    color: #0d6f3c;
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 6px;
}

.badge-date {
    display: block;
    font-size: 0.8em;
    color: #888;
}

/* Documents List */
.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.document-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.document-item.add-new {
    border: 3px dashed #0d6f3c;
    cursor: pointer;
    transition: all 0.3s;
}

.document-item.add-new:hover {
    background: #f9f9f9;
    transform: scale(1.02);
}

.doc-icon {
    font-size: 3em;
}

.doc-details {
    flex: 1;
}

.doc-details h4 {
    color: #0d6f3c;
    margin-bottom: 5px;
}

.doc-details p {
    color: #888;
    font-size: 0.9em;
}

/* Location Info */
.location-info {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-info span {
    color: #0d6f3c;
    font-weight: 600;
}

/* Sai Counter */
.sai-counter {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #0d6f3c;
}

.sai-counter span {
    font-weight: 700;
    color: #0d6f3c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .navbar .nav-brand {
        margin-left: 15px;
        font-size: 1.6em;
    }

    .navbar .nav-brand::before {
        width: 35px;
        height: 35px;
    }

    .navbar .nav-menu {
        margin-right: 15px;
        gap: 5px;
    }

    .navbar .nav-menu a {
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prayer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-grid, .location-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .header::before {
        width: 80px;
        height: 80px;
    }

    .welcome-section h1 {
        font-size: 2em;
    }

    .ritual-card {
        flex-direction: column;
    }

    .journey-selector {
        flex-direction: column;
    }

    .journey-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn-primary, .btn-secondary {
        display: none;
    }

    body::before {
        display: none;
    }
}

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

.prayer-item.active {
    animation: pulse 2s infinite;
}

/* Accessibility */
:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: 3px solid #ffd700;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}