body {
    overflow: auto;
    background-color: rgba(248, 247, 247, 1);
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #fff;
    box-shadow: 0px 14px 10px rgba(8, 15, 52, 0.06);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b7924f, #d4af37);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4af37, #b7924f);
}

.sidebar .logo img {
    max-width: 152px;
    height: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 0.8rem;
}

.sidebar ul li a {
    color: rgba(39, 58, 65, 1);
    text-decoration: none;
    font-size: 16px;
    padding: .7rem;
}

.sidebar ul li.active a {
    color: #b7924f !important;
    font-weight: bold;
}

.sidebar ul li a:hover {
    color: #b7924f;
}

.sidebar .nav-link.active {
    color: #b7924f;
}

.sidebar .icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease-in-out;
}

.sidebar ul li.active .icon,
.sidebar ul li:hover .icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(29%) saturate(343%) hue-rotate(8deg) brightness(95%) contrast(90%);
    transform: scale(1.05);
}

.sidebar .nav-item:hover {
    background-color: rgba(249, 248, 244, 1);
    border-radius: 8px;
}

.sidebar .nav-item.active {
    background-color: rgba(249, 248, 244, 1);
    border-radius: 8px;
}

/* Close Button */
.sidebar-close {
    display: none;
    position: absolute;
    top: 2%;
    left: 0;
    font-size: 2rem;
    color: black;
}

/* custom container */

.custom-container {
    padding: 0 20rem 0 0;
}

/* navbar */
.search-bar {
    padding-right: 1rem;
    width: 100%;
}

.search-bar input {
    background-color: rgba(39, 58, 65, 0.05);
    border: none;
    padding: .7rem;
}

.search-bar input::placeholder {
    color: rgba(156, 156, 156, 1);
    font-size: 14px;
    padding: .5rem;
}

.search-bar input {
    background-color: #f7f7f7;
    border: none;
    padding-right: 2.5rem;
}

.search-bar input:focus {
    box-shadow: none;
    background-color: #f7f7f7;
}

.search-bar i {
    color: rgba(158, 158, 158, 1);
    font-size: 16px;
}

/* Content */
.content {
    margin-right: 270px;
    padding: 1rem 3rem;
    transition: margin-left 0.3s ease-in-out;
}

/* Table */
.user-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.active-status p {
    background-color: rgba(23, 89, 65, 0.2);
    color: rgba(23, 89, 65, 1);
    border-radius: 16px;
    padding: .5rem;
}

.btn-custom {
    background-color: rgba(211, 171, 85, 1);
    color: rgba(248, 247, 247, 1);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
}

.btn-custom:hover {
    background-color: rgb(211, 160, 51);
    color: rgba(248, 247, 247, 1);
}

.modal-body input::placeholder {
    color: rgba(123, 123, 123, 0.5);
    font-size: 16px;
    font-weight: 400;
    text-align: right;
}

.modal-body input[type="text"],
input[type="date"],
input[type="tel"],
input[type="url"],
select {
    padding: 1rem;
    border-radius: 10px;
}

.modal-body label {
    margin-bottom: 1rem;
}


.custom-select {
    background-position: left 0.75rem center;
    background-size: 16px 16px;
    padding: 1rem;
    border-radius: 10px;
}

[dir="rtl"] .custom-select {
    background-position: left 1rem center;
    padding-right: 2.5rem;
}


.form-check-input:checked {
    background-color: rgb(211, 160, 51);
    border-color: rgb(211, 160, 51);
}



@media (max-width: 767.98px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .programmes-table {
        font-size: 14px;
    }

    .pagination-controls select {
        width: 80px;
    }
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0%);
    }

    .sidebar-close {
        display: block;
    }

    .content {
        margin-right: 0 !important;
        padding: .5rem;
    }

    .custom-container {
        padding: 0;
    }

    .search-bar {
        width: 100%;
    }
}

/* coupons */

.coupon-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(211, 171, 85, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 140px;
    height: 100%;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(211, 171, 85, 1) 0%, rgba(211, 160, 51, 1) 100%);
    border-radius: 20px 20px 0 0;
}

.coupon-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(211, 171, 85, 0.1) 0%, rgba(211, 160, 51, 0.1) 100%);
    border-radius: 50%;
    z-index: 0;
}

.coupon-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(211, 171, 85, 0.2);
    border-color: rgba(211, 171, 85, 0.4);
}

.coupon-card:hover::before {
    height: 6px;
    box-shadow: 0 0 20px rgba(211, 171, 85, 0.3);
}

.coupon-details {
    flex: 1;
    z-index: 1;
    position: relative;
}

.coupon-title {
    font-size: 28px;
    font-weight: 700;
    color: rgba(211, 171, 85, 1);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-title::before {
    content: '🎫';
    font-size: 24px;
    animation: bounce 2s infinite;
}

.coupon-code {
    background: linear-gradient(135deg, rgba(211, 171, 85, 0.1) 0%, rgba(211, 160, 51, 0.1) 100%);
    color: rgba(211, 171, 85, 1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 0.5rem;
    border: 1px dashed rgba(211, 171, 85, 0.3);
}

.coupon-description {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-description::before {
    content: '📅';
    font-size: 14px;
}

.coupon-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.coupon-status.expired {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.dotted-divider {
    width: 2px;
    height: 80px;
    background: repeating-linear-gradient(to bottom,
            rgba(211, 171, 85, 0.3),
            rgba(211, 171, 85, 0.3) 6px,
            transparent 6px,
            transparent 12px);
    position: relative;
}

.dotted-divider::before,
.dotted-divider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid rgba(211, 171, 85, 0.3);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.dotted-divider::before {
    top: -8px;
}

.dotted-divider::after {
    bottom: -8px;
}

.coupon-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(211, 171, 85, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.coupon-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.coupon-card:hover .coupon-logo {
    border-color: rgba(211, 171, 85, 0.5);
    transform: rotate(5deg);
}

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

.coupon-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.coupon-card:hover .coupon-actions {
    opacity: 1;
    transform: translateY(0);
}

.coupon-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-action-btn.edit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.coupon-action-btn.delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.coupon-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* تأثيرات إضافية للكوبونات المنتهية الصلاحية */
.coupon-card.expired {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.coupon-card.expired::before {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
}

.coupon-card.expired .coupon-title {
    color: #dc3545;
}

.coupon-card.expired .coupon-code {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

/* تحسينات إضافية للكوبونات */
.coupon-info {
    border-top: 1px solid rgba(211, 171, 85, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.coupon-info small {
    transition: color 0.3s ease;
}

.coupon-card:hover .coupon-info small {
    color: rgba(211, 171, 85, 0.8) !important;
}

/* تأثيرات التحميل */
.coupon-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.coupon-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(211, 171, 85, 0.2);
    border-top: 4px solid rgba(211, 171, 85, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .coupon-card {
        padding: 1.5rem;
        min-height: 120px;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .coupon-title {
        font-size: 24px;
    }

    .coupon-logo {
        width: 60px;
        height: 60px;
        order: -1;
    }

    .dotted-divider {
        width: 80%;
        height: 2px;
        background: repeating-linear-gradient(to right,
                rgba(211, 171, 85, 0.3),
                rgba(211, 171, 85, 0.3) 6px,
                transparent 6px,
                transparent 12px);
    }

    .dotted-divider::before,
    .dotted-divider::after {
        width: 12px;
        height: 12px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .dotted-divider::before {
        left: -6px;
    }

    .dotted-divider::after {
        right: -6px;
        left: auto;
    }

    .coupon-actions {
        position: static;
        opacity: 1;
        transform: none;
        justify-content: center;
        margin-top: 1rem;
        justify-content: space-evenly;
    }
}

@media (max-width: 480px) {
    .coupon-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .coupon-title {
        font-size: 20px;
    }

    .coupon-code {
        font-size: 12px;
        padding: 0.4rem 0.8rem;
    }

    .coupon-description {
        font-size: 12px;
    }
}

/* تأثيرات خاصة للكوبونات النشطة */
.coupon-card:not(.expired):hover {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(211, 171, 85, 0.2);
    }

    50% {
        box-shadow: 0 25px 50px rgba(211, 171, 85, 0.3);
    }
}

/* تحسين مظهر الكوبونات عند عدم وجودها */
.no-coupons-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed rgba(211, 171, 85, 0.3);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.no-coupons-container:hover {
    border-color: rgba(211, 171, 85, 0.5);
    transform: translateY(-2px);
}

/* تأثيرات إضافية للكوبونات المميزة */
.coupon-card.featured {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-color: rgba(211, 171, 85, 0.5);
    position: relative;
}

.coupon-card.featured::before {
    background: linear-gradient(90deg, #ffc107 0%, rgba(211, 171, 85, 1) 100%);
    height: 6px;
}

.coupon-card.featured .coupon-title {
    color: #b8860b;
}

/* promotions */

.promotions-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.promotions-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    border-radius: 20px 20px 0 0;
}

.promotions-card::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.promotions-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.promotions-card:hover::before {
    height: 6px;
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.4);
}

.promo-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.promo-status.expired {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.promo-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.promo-content {
    z-index: 1;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

.promo-service {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.promo-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.promo-date,
.promo-usage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-promo-action {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-promo-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
}

.promo-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.promotions-card:hover .promo-actions {
    opacity: 1;
    transform: translateY(0);
}

.promo-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.promo-action-btn.edit {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 0.8) 100%);
    color: white;
}

.promo-action-btn.delete {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.8) 0%, rgba(192, 57, 43, 0.8) 100%);
    color: white;
}

.promo-action-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* تأثيرات العروض المنتهية الصلاحية */
.promotions-card.expired {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    opacity: 0.7;
    filter: grayscale(0.5);
}

.promotions-card.expired .promo-title {
    background: linear-gradient(45deg, #bdc3c7, #95a5a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* حالة عدم وجود عروض */
.no-promotions-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.no-promotions-container:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* تحسينات الاستجابة للعروض */
@media (max-width: 768px) {
    .promotions-card {
        min-height: 250px;
        padding: 1.5rem;
    }

    .promo-title {
        font-size: 2rem;
    }

    .promo-icon {
        font-size: 2.5rem;
    }

    .promo-actions {
        position: static;
        opacity: 1;
        transform: none;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .promotions-card {
        min-height: 220px;
        padding: 1rem;
    }

    .promo-title {
        font-size: 1.8rem;
    }

    .btn-promo-action {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* تأثيرات خاصة للعروض النشطة */
.promotions-card:not(.expired):hover {
    animation: promo-glow 2s infinite;
}
.promo-hero-card {
  position: relative;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  direction: rtl;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Overlay غامق */
.promo-overlay {
  position: absolute;
  inset: 0;
  background: #00000083;
  z-index: 1;
}

/* المحتوى */
.promo-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
}

.promo-hero-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 6px;
}

.promo-hero-text {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.promo-hero-date {
  font-size: 14px;
  opacity: 0.9;
}

/* أزرار التحكم */
.promo-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.promo-hero-card:hover .promo-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.promo-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-actions button.delete {
  background: rgba(220,53,69,0.9);
}

/* منتهي الصلاحية */
.promo-hero-card.expired {
  filter: grayscale(1);
  opacity: 0.7;
}

@keyframes promo-glow {

    0%,
    100% {
        box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
    }
}

/* مؤشر التحميل للعروض */
.promotions-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

/* Ensure table cells don't wrap unnecessarily */
.table th,
.table td {
    white-space: nowrap;
}

.table td,
.table th {
    padding: 1.2rem;
}

.table th {
    color: rgba(63, 63, 63, 1);
    font-size: 15px;
}

.table {
    border-radius: 12px !important;
}


.btn i {
    font-size: 1.2rem;
}


@media (max-width: 767.98px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .programmes-table {
        font-size: 14px;
    }

    .pagination-controls select {
        width: 80px;
    }
}

/* Table */
.user-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.active-status p {
    background-color: rgba(23, 89, 65, 0.2);
    color: rgba(23, 89, 65, 1);
    border-radius: 16px;
    padding: .5rem;
}

.btn-custom {
    background-color: rgba(211, 171, 85, 1);
    color: rgba(248, 247, 247, 1);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
}

.btn-custom:hover {
    background-color: rgb(211, 160, 51);
    color: rgba(248, 247, 247, 1);
}

.modal-body input::placeholder {
    color: rgba(123, 123, 123, 0.5);
    font-size: 16px;
    font-weight: 400;
    text-align: right;
}

.modal-body input[type="text"],
input[type="date"],
input[type="number"],
input[type="url"],
textarea,
select {
    padding: 1rem;
    border-radius: 10px;
}

.modal-body label {
    margin-bottom: 1rem;
}


.custom-select {
    background-position: left 0.75rem center;
    background-size: 16px 16px;
    padding: 1rem;
    border-radius: 10px;
}

[dir="rtl"] .custom-select {
    background-position: left 1rem center;
    padding-right: 2.5rem;
}
/* Subscription Section */
.subscription-section {
    direction: rtl;
}

/* Card */
.subscription-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px 60px;
    height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.subscription-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* Featured Card */
.subscription-card.featured {
    border: 2px solid #d6a84a;
}

/* Title */
.plan-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 18px;
    color: rgba(39, 58, 65, 1);
}

/* Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Price */
.plan-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #d6a84a;
}
/* Transactions */
.transactions-section {
    direction: rtl;
}

.transactions-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Table */
.transactions-table {
    text-align: right;
    vertical-align: middle;
}

.transactions-table thead th {
    font-size: 14px;
    color: #888;
    border-bottom: none;
}

.transactions-table tbody tr {
    border-top: 1px solid #f1f1f1;
}

.transactions-table td {
    font-size: 14px;
    padding: 16px 8px;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info .email {
    font-size: 12px;
    color: #888;
}

/* Status */
.status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status.paid {
    background: #dff5e5;
    color: #2e9b5f;
}

.status.refunded {
    background: #fff3d9;
    color: #c68a1f;
}

.status.failed {
    background: #fde2e2;
    color: #d64545;
}

/* Actions */
.actions {
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Footer */
.transactions-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}
/* Subscription Modal */
.subscription-modal {
    border-radius: 28px;
    padding: 24px;
}

.subscription-modal .modal-title {
    font-size: 26px;
    font-weight: bold;
    color: #273a41;
}

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

.form-group label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Toggle */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.toggle-row input {
    accent-color: #d6a84a;
}

/* Footer Buttons */
.modal-footer {
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    background: #d6a84a;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 16px;
    color: #fff;
}

.btn-outline {
    flex: 1;
    background: #fff;
    border: 1px solid #999;
    border-radius: 999px;
    padding: 14px;
}

/* Plan card action buttons – unified design */
.plan-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.plan-action-btn {
    min-width: 88px;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.plan-action-btn:hover {
    transform: translateY(-1px);
}

.plan-action-edit {
    background: #fff;
    border-color: #d6a84a;
    color: #b8860b;
}

.plan-action-edit:hover {
    background: rgba(214, 168, 74, 0.08);
    border-color: #b8860b;
    color: #8b6914;
}

.plan-action-toggle {
    background: #d6a84a;
    border-color: #d6a84a;
    color: #fff;
}

.plan-action-toggle:hover {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

/* When plan is hidden, "إظهار" button – success style */
.plan-action-toggle.plan-action-show {
    background: #2d7a3e;
    border-color: #2d7a3e;
    color: #fff;
}

.plan-action-toggle.plan-action-show:hover {
    background: #236230;
    border-color: #236230;
    color: #fff;
}

/* Legacy class kept for any other usage */
.edit-subscription-btn {
    margin-top: 16px;
    background: transparent;
    border: 1px solid #d6a84a;
    color: #d6a84a;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
}
