body {
    font-family: 'Cairo', sans-serif;
    background-color: #f7f7fb;
    direction: rtl;
}

/* Navbar */
.custom-navbar {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Logo */
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #a78bfa, #6f42c1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

/* Buttons */
.btn-soft {
    background: #f3f0ff;
    color: #6f42c1;
    border-radius: 25px;
    padding: 7px 18px;
    border: none;
}

.btn-gradient {
    background: linear-gradient(135deg, #a78bfa, #6f42c1);
    color: white;
    border-radius: 25px;
    padding: 7px 20px;
    border: none;
}


.btn-soft:hover{
    background:#d2c0f1    
}
.btn-gradient:hover {
    opacity: 0.9;
}

/* Main */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 50px 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: #6f42c1;
    color: white;
    text-align: center;
    padding: 20px;
}
.main-btn {
    padding: 10px 30px;
    font-size: 16px;
}

.fancy-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: 0.4s;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}

.fancy-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

.fancy-card:hover .overlay {
    opacity: 1;
}

.fancy-card .card-body {
    padding: 20px;
}

/* زر */
.btn-gradient {
    background: linear-gradient(135deg, #a78bfa, #6f42c1);
    color: white;
    border-radius: 25px;
    padding: 8px;
    border: none;
}

/* Hover خفيف */
.btn-gradient:hover {
    opacity: 0.9;
}

/* wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

/* الكارد */
.auth-card-new {
    width: 480px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(111,66,193,0.15);
    text-align: right;
    animation: fadeUp .5s ease;
}

/* عنوان */
.title {
    font-weight: 700;
    text-align: center;
}

/* وصف */
.subtitle {
    color: #888;
    margin-bottom: 25px;
    text-align: center;
}

/* الحقول */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
}

.toggle-password {
    position: absolute;
    top: 38px; 
    left: 12px; 
    cursor: pointer;
    color: #6c757d;
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
    text-align: right;
}

/* focus */
.form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111,66,193,0.1);
}

/* زر */
.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg,#7b5cff,#6f42c1);
    color: white;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    animation: slideIn 0.4s ease;
}

.custom-alert.success {
    background: linear-gradient(135deg, #6a11cb, #9b4dff);
}

.custom-alert.error {
    background: #dc3545;
}

.close-alert {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

@keyframes slideIn {
    from {transform: translateX(100%); opacity: 0;}
    to {transform: translateX(0); opacity: 1;}
}
.alert-warning-custom {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

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

.link {
    color: #6f42c1;
    font-weight: 500;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}
.user-box {
    background: #f3f0ff;
    padding: 8px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
}


.user-name {
    color: #6f42c1;
}


.user-box i {
    color: #6f42c1;
}


.user-box:hover {
    background: #6f42c1;
}

.user-box:hover .user-name,
.user-box:hover i {
    color: #fff;
}


.profile-page {
    background: #f7f7fb;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.profile-card {
    max-width: 500px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Header */
.profile-header {
    margin-bottom: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0d7ff;
}

.profile-icon {
    font-size: 90px;
    color: #9181d6;
}

.profile-header h3 {
    margin-top: 10px;
    font-weight: 600;
}

.profile-header p {
    color: #888;
    font-size: 14px;
}

/* Tabs */
.profile-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #6f42c1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6f42c1;
}

/* Logout */
.logout-btn {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 14px;
    cursor: pointer;
}

/* Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Info */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* الكرت */
.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eeeded;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-2px);
}

/* الأيقونة */
.info-card i {
    font-size: 20px;
    color: #6f42c1;
    background: #f0ebff;
    padding: 10px;
    border-radius: 10px;
}

/* النص */
.info-card span {
    font-size: 13px;
    color: #888;
}

.info-card p {
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* زر التعديل */
.edit-btn {
    display: block;
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(45deg,#7b5cff,#6f42c1);
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.edit-btn:hover {
    opacity: 0.9;
}

/* Bookings */
.booking-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card */
.booking-card {
    background: #ebebeb;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #a8a7a7;
}

.booking-card:hover {
    transform: translateY(-4px);
}

/* Info */
.booking-info h5 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #6f42c1;
}

.booking-info p {
    margin: 6px 0;
    color: #555;
    font-size: 14px;
}

.booking-info i {
    margin-left: 6px;
    color: #aaa;
}

/* Status */
.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.pending { background:#fff3cd; color:#856404; }
.approved { background:#eafaf1; color:#2ecc71; }
.rejected { background:#fdecea; color:#e74c3c; }
.cancelled { background:#f0f0f0; color:#777; }
.finished { background:#eaf4ff; color:#3498db; }
/* Payment */
.paid {
    color: #2ecc71;
    font-weight: 600;
}

.not-paid {
    color: #e74c3c;
    font-weight: 600;
}

.deferred {
    color: #3498db;
    font-weight: 600;
}

/* Actions */
.booking-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-edit {
    background: #f0ebff;
    color: #6f42c1;
    padding: 6px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-edit:hover {
    background: #e2d9ff;
}

.btn-delete {
    background: #ffeaea;
    color: #c0392b;
    border: none;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.btn-delete:hover {
    background: #ffd6d6;
}
.btn-cancel {
    background: linear-gradient(135deg, #f5f6f8, #afb1b4);
    color: #4a4a4a;
    border: 1px solid #d6d9de;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    cursor: pointer;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #ffffff, #dfe3e8);
    border-color: #c8ccd3;
    color: #2f2f2f;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.btn-cancel:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 8px !important;
    color: #6f42c1;
}

.page-item.active .page-link {
    background: #6f42c1;
    border-color: #6f42c1;
}
.profile-edit-card {
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    text-align: right;
}

.profile-avatar-edit {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-icon-edit {
    font-size: 100px;
    color:#9181d6;
}
.btn-gradient {
    background: linear-gradient(135deg, #6f42c1, #a980ff);
    color: #fff;
    border: none;
}
.btn-gradient:hover {
    opacity: 0.9;
    color: #fff;
}

.form-card {
    border-radius: 15px;
    overflow: hidden;
    max-width: 550px;  
    margin: 40px auto;  
    direction: rtl;     
    text-align: right; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: #fff;
    padding: 10px;
}

.form-title {
    font-weight: bold;
    color: #6f42c1;
}

.form-control {
    border-radius: 10px;
    padding: 10px;
}

.btn-gradient {
    background: linear-gradient(45deg, #6f42c1, #a855f7);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-gradient:hover {
    opacity: 0.9;
}

.form-label {
    font-weight: 600;
    margin-bottom: 5px;
}
.custom-link {
    position: relative;
    padding: 8px 14px;
    margin-right: 40px; 
    color: #444;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}


.custom-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 14px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c63ff, #8f94fb);
    transition: width 0.3s ease;
}


.custom-link:hover {
    color: #6c63ff;
    background-color: rgba(108, 99, 255, 0.08);
}


.custom-link:hover::after {
    width: calc(100% - 28px);
}


.navbar .custom-link {
    margin-left: 30px;
}

