﻿:root {
    --main-gradient: linear-gradient(135deg, #00A8FF 0%, #003F8C 100%);
    --main-gradient90: linear-gradient(90deg, #00A8FF 0%, #003F8C 100%);
    --main-gradient-light: linear-gradient(135deg, #00A8FF 0%, #157EDC 100%);

    --warn-gradient: linear-gradient(135deg, #FF4B4B 0%, #8C0000 100%);
    
    --gradient-start: #00A8FF;
    --gradient-middle: #157EDC;
    --gradient-end: #003F8C;
    --white-glass: rgba(255, 255, 255, 0.95);
    --white-glass-light: rgba(255, 255, 255, 0.1);
    --shadow-main: 0 20px 60px rgba(0,0,0,0.1);
    --border-glass: 1px solid rgba(255, 255, 255, 0.3);
    --text-primary: #333;
    --text-secondary: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--main-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

.main-container {
    margin: 0 1rem 0 1rem;
}

/*.section-container {
    margin: 0 160px 0 160px;
}*/

/* Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--white-glass-light);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

    .particle:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
        width: 10px;
        height: 10px;
    }

    .particle:nth-child(2) {
        left: 20%;
        animation-delay: 1s;
        width: 15px;
        height: 15px;
    }

    .particle:nth-child(3) {
        left: 30%;
        animation-delay: 2s;
        width: 8px;
        height: 8px;
    }

    .particle:nth-child(4) {
        left: 40%;
        animation-delay: 3s;
        width: 12px;
        height: 12px;
    }

    .particle:nth-child(5) {
        left: 50%;
        animation-delay: 4s;
        width: 18px;
        height: 18px;
    }

    .particle:nth-child(6) {
        left: 60%;
        animation-delay: 5s;
        width: 6px;
        height: 6px;
    }

    .particle:nth-child(7) {
        left: 70%;
        animation-delay: 2.5s;
        width: 14px;
        height: 14px;
    }

    .particle:nth-child(8) {
        left: 80%;
        animation-delay: 1.5s;
        width: 11px;
        height: 11px;
    }

    .particle:nth-child(9) {
        left: 90%;
        animation-delay: 3.5s;
        width: 9px;
        height: 9px;
    }




.result-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .result-message a {
        color: #0c5460;
        font-weight: bold;
        text-decoration: underline;
    }



/* Main Container */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}


.subscribe-container {
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    width: 100%;
    max-width: 1000px;
    box-shadow: var(--shadow-main);
    border: var(--border-glass);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}
.form-card {
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-main);
    border: var(--border-glass);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

    .form-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(0, 168, 255, 0.05), transparent);
        transform: rotate(45deg);
        animation: shimmer 3s ease-in-out infinite;
    }

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.logo-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

    .logo-image:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 25px rgba(0, 168, 255, 0.3));
    }

.welcome-text {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Form Content */
.form-content {
    position: relative;
    z-index: 2;

}

/* Footer Links */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 168, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-link {
    color: var(--gradient-start);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

    .form-link:hover {
        color: var(--gradient-end);
        background-color: rgba(0, 168, 255, 0.1);
        transform: translateY(-1px);
        text-decoration: none;
    }

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

    .social-icon:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4);
    }

/* Loading & Messages */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

    .message-popup.show {
        transform: translateX(0);
    }

    .message-popup.error {
        background: linear-gradient(135deg, #f44336, #da190b);
    }

    .message-popup.success {
        background: linear-gradient(135deg, #4CAF50, #45a049);
    }


/**  ÇáÔÑíØ ÇáÑÆíÓí ááÈÑäÇãÌ  */
.custom-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

    .custom-navbar:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }

.user-dropdown {
    position: relative;
}

.user-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
    .user-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .user-toggle:hover::before {
        left: 100%;
    }

    .user-toggle.show,
    .user-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    min-width: 220px;
    box-shadow: var(--shadow-main);
    border: var(--border-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

    .user-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 5px;
    position: relative;
    overflow: hidden;
}

    .user-menu-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--main-gradient-light);
        transition: left 0.4s;
        z-index: -1;
    }

    .user-menu-item:hover::before {
        left: 0;
    }

    .user-menu-item:hover {
        color: white;
        text-decoration: none;
        transform: translateX(-5px);
    }

    .user-menu-item i {
        margin-left: 10px;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }



/* Mobile responsive fixes */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}



/**/


/* Hero Section    ÇáãßÇä Çá ÊÍÊ ÇáÔÑíØ */
.hero-section {
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}




    /* ÇáÇÑÈÚ ãÑÈÚÇÊ Çá Ý ÕÝÍÉ ÇáÑÆíÓíÉ */

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 12rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.6s ease;
        opacity: 0;
    }

    .stat-card:hover::before {
        opacity: 1;
        animation: shimmer 1.5s ease-in-out;
    }



    .stat-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        background: rgba(255, 255, 255, 0.15);
    }

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}
/* ÒÑÇÑ ÇáÈÑäÇãÌ ÇáÑÆíÓí */

/* Container للأزرار - Flex */
.text-center {
    display: flex; /* تجعل الأزرار في صف واحد */
    gap: 16px; /* المسافة بين الأزرار */
    justify-content: center; /* توسيط الأزرار */
    flex-wrap: wrap; /* يسمح بالانتقال لسطر ثاني لو ضيق */
}

/* أزرار عامة */
.action-btn,
.warn-btn {
    position: relative; /* مهم للـ ::before */
    overflow: hidden; /* لمنع الشاين من الخروج */
   display: block;
    width: 256px;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 0.8rem 2rem;
    border: none;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease !important;
    z-index: 1; /* كل زر مستقل */
    cursor: pointer;
    margin: 8px auto 8px auto;
}

/* Gradients افتراضية */
:root {
    --main-gradient: linear-gradient(135deg, #00A8FF 0%, #003F8C 100%);
    --warn-gradient: linear-gradient(135deg, #FF4B4B 0%, #8C0000 100%);
}

/* خلفية الأزرار */
.action-btn {
    background: var(--main-gradient);
}

.warn-btn {
    background: var(--warn-gradient);
}

/* لمعة الزر الأزرق */
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 0; /* تحت النص */
    transition: left 0.5s;
}

/* لمعة الزر الأحمر */
.warn-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 0; /* تحت النص */
    transition: left 0.5s;
}

/* حركة اللمعة عند hover */
.action-btn:hover::before,
.warn-btn:hover::before {
    left: 100%;
}

/* تأثير hover لكل زر */
.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,168,255,0.4); /* ظل أزرق */
    color: white;
    text-decoration: none;
}

.warn-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,75,75,0.4); /* ظل أحمر */
    color: white;
    text-decoration: none;
}


/* Subscription Table */
.table-container {
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-main);
    border: var(--border-glass);
    overflow: hidden;
    width: 8000px;
/*    width: 100%;
*/    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

.table-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

    .table-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--main-gradient90);
        border-radius: 2px;
    }





/* DevExtreme Styles */

/*.dx-datagrid-headers {
    background: #f1f1f1 !important;
}*/

/* Footer Style */
/*.dx-datagrid-total-footer {
    background: #f1f1f1 !important;
}*/

/* ÊÛííÑ áæä ÃíÞæäÉ + Ýí ÒÑ ÇáÅÖÇÝÉ */
/*.dx-datagrid-addrow-button .dx-icon.dx-icon-add {
    color: white !important;*/ /* Ãæ Ãí áæä ÊÍÈå ãËáÇð #fff Ãæ #28a745 */
/*}*/
/* Ãí ÃíÞæäÉ Ýí DevExtreme ÊÎáí áæäåÇ ÃÈíÖ */
/*.dx-icon {
    color: white !important;
    fill: white !important;
}*/

/* ÇÓÊËäÇÁ: ÑÌøÚ áæä ÃíÞæäÇÊ ÇáÝáÊÑ æÇáÈÍË ááæÖÚ ÇáØÈíÚí */
/*.dx-datagrid .dx-editor-with-menu .dx-icon,*/ /* ÃíÞæäÉ ÇáÈÍË */
/*.dx-datagrid .dx-header-filter .dx-icon,*/ /* ÃíÞæäÉ ÇáÝáÊÑ */
/*.dx-datagrid .dx-datagrid-filter-operation .dx-icon {*/ /* ÃíÞæäÇÊ ÇáÔÑØ ãËá = > < */
    /*color: inherit !important;
    fill: inherit !important;
}*/

/* ÇÓÊËäÇÁ: ÃíÞæäÉ ÇáÈÍË Ýí Search Panel */
/*.dx-datagrid-search-panel .dx-icon-search {
    color: inherit !important;
    fill: inherit !important;
}


.dx-form {
    background: transparent !important;
}

.dx-field-item-label-text {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.dx-textbox {
    border-radius: 8px !important;
    border: 2px solid rgba(0, 168, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}



    .dx-textbox:hover {
        border-color: rgba(0, 168, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }

    .dx-textbox.dx-state-focused {
        border-color: var(--gradient-start) !important;
        box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1) !important;
        background: rgba(255, 255, 255, 1) !important;
    }

.dx-texteditor-input {*/
    /*padding: 12px 20px !important;*/
    /*font-size: 1rem !important;
    color: var(--text-primary) !important;
    height:40px;


}



.dx-button {
    background: var(--main-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
    position: relative !important;
    overflow: hidden !important;
}

    .dx-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .dx-button:hover::before {
        left: 100%;
    }

    .dx-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4) !important;
    }*/




@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Responsive */


@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link {
        margin: 0.2rem 0;
        text-align: center;
    }

    .user-dropdown {
        text-align: center;
        margin-top: 1rem;
    }

    .user-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.15);
    }
}



@media (max-width: 768px) {

    .form-container {
        padding: 2rem 1rem;
        /*margin: 1rem 0;*/
    }

    .form-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }




    .welcome-text {
        font-size: 1.5rem;
    }

    .logo-image {
        width: 150px;
    }


    .hero-title {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .table-container {
        overflow-x: auto;
        padding: 1rem;
    }

    .form-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }



    .action-btn,
    .custom-button {
        width: 100%;
        margin: 0.5rem 0;
    }


    .logo {
        width: 150px;
    }




}

@media (max-width: 480px) {

    .stats-container {
        padding: 4rem 1rem;
    }


    .form-card {
        padding: 1.5rem 1rem;
    }

    .welcome-text {
        font-size: 1.3rem;
    }

    .logo {
        width: 120px;
    }
}







