/* ==================================================
   TECHNO SEEDS CRM
   PART 01
   RESET + LOGIN + LAYOUT
================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');


/* ==================================================
   RESET
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'IBM Plex Sans Arabic',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f8f5;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}


/* ==================================================
   MAIN LAYOUT
================================================== */

.wrapper{
    display:flex;
    min-height:100vh;
}

.main-content{

    flex:1;

    background:#f5f8f5;

    margin-right:250px;

}

.content{
    padding:20px;
}


/* ==================================================
   LOGIN PAGE
================================================== */

.login-container{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

    background:
    linear-gradient(
    135deg,
    #065a34,
    #0d7a47,
    #20b26b
    );

}
.login-card{

    width:100%;
    max-width:450px;

    background:#ffffff;

    padding:40px;

    border-radius:25px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.10);

    text-align:center;

    border-top:5px solid #065a34;

}

.logo{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:20px;
}

.logo img{
    width:140px;
    max-width:100%;
    height:auto;
    object-fit:contain;
}

.login-card h1{

    font-size:32px;

    font-weight:700;

    color:#065a34;

    margin-bottom:8px;

    letter-spacing:1px;

}

.login-card p{

    color:#666;

    margin-bottom:25px;

}

.login-card input{

    width:100%;

    height:50px;

    border:1px solid #ddd;

    border-radius:12px;

    padding:0 15px;

    margin-bottom:15px;

    font-size:15px;

}

.login-card input:focus{

    outline:none;

    border-color:#065a34;

}

.login-card button{

    width:100%;

    height:50px;

    border:none;

    border-radius:12px;

    background:#065a34;

    color:#fff;

    font-size:16px;

    cursor:pointer;

    transition:.3s;

}

.login-card button:hover{

    background:#1b5e20;

}


/* ==================================================
   ALERT BOXES
================================================== */

.error-box{

    background:#ffebee;

    color:#c62828;

    padding:12px;

    border-radius:10px;

    margin-bottom:15px;

}

.success-box{

    background:#e8f5e9;

    color:#065a34;

    padding:15px;

    border-radius:10px;

    margin-bottom:20px;

}

.success-message{

    background:#d4edda;

    color:#155724;

    padding:15px;

    border-radius:12px;

    margin-bottom:15px;

}

.error-message{

    background:#f8d7da;

    color:#721c24;

    padding:15px;

    border-radius:12px;

    margin-bottom:15px;

}

/* ==================================================
   PART 02
   SIDEBAR
================================================== */

.sidebar{

    position:fixed;

    top:0;

    right:0;

    width:250px;

    height:100vh;

    background:linear-gradient(
    135deg,
    #065a34,
    #0d7a47,
    #20b26b

    );

    color:#fff;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    overflow-y:auto;

    z-index:1000;

}
/* ==========================
   SIDEBAR BRAND
========================== */

.sidebar-brand{

    padding:25px 15px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.10);

    margin-bottom:10px;

}

.sidebar-brand img{

    width:110px;

    height:auto;

    margin:0 auto 15px;

    object-fit:contain;

}

.sidebar-brand h2{

    color:#fff;

    font-size:20px;

    font-weight:700;

    margin:0;

    letter-spacing:1px;

}

.sidebar-brand span{

    display:block;

    margin-top:6px;

    font-size:12px;

    color:rgba(255,255,255,.75);

    letter-spacing:2px;

}
/* ==================================================
   MENU
================================================== */

.menu-list{

    list-style:none;

    margin:0;

    padding:0;

}

.menu-list li{

    margin:4px 12px;

}

.menu-list a,
.menu-toggle{

    width:100%;

    display:flex;

    align-items:center;

    padding:14px 16px;

    border:none;

    background:none;

    color:#fff;

    font-size:15px;

    border-radius:12px;

    cursor:pointer;

    transition:.3s;

}
.menu-toggle{

    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;
}

.menu-title{

    display:flex;
    align-items:center;
}

.submenu-arrow{

    font-size:12px;

    transition:.3s;

    opacity:.8;
}
.menu-list a:hover,
.menu-toggle:hover{

    background:rgba(255,255,255,.10);

}

.menu-list .active{

    background:rgba(255,255,255,.15);

}


/* ==================================================
   SUB MENU
================================================== */

.submenu{

    display:none;

    padding-right:15px;

    margin-top:5px;

}

.submenu.open{

    display:block;

}

.submenu a{

    font-size:14px;

    opacity:.95;

}


/* ==================================================
   SIDEBAR ICONS
================================================== */

.sidebar .crm-icon{

    width:22px;

    margin-left:10px;

    text-align:center;

    color:#fff;

    font-size:15px;

}


/* ==================================================
   LOGOUT
================================================== */

.logout-area{

    padding:20px;

    border-top:1px solid rgba(255,255,255,.1);

}

.logout-area a{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:14px;

    color:#fff;

    border-radius:12px;

    background:rgba(255,255,255,.08);

    transition:.3s;

}

.logout-area a:hover{

    background:#1B7A43;

}


/* ==================================================
   CLOSE SIDEBAR BUTTON
================================================== */

.close-sidebar{

    display:none;

}

.sidebar-overlay{

    display:none;

}

/* ==================================================
   PART 03
   HEADER + TOPBAR
================================================== */


.topbar{

    height:75px;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 25px;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

    position:sticky;

    top:0;

    z-index:100;

}
.header-divider{

    color:#d0d7d0;

    font-size:24px;

    font-weight:300;

    margin:0 5px;

    user-select:none;
}

/* ==================================================
   TOPBAR RIGHT
================================================== */

.topbar-right{

    display:flex;

    align-items:center;

    gap:15px;

}


/* ==================================================
   TOPBAR LEFT
================================================== */

.topbar-left{


    align-items:center;

    gap:10px;

}


/* ==================================================
   PAGE HEADING
================================================== */

.page-heading{

    font-size:20px;

    font-weight:700;

    color:#065a34;

    margin:0;

}


/* ==================================================
   HEADER ICONS
================================================== */

.header-icon{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#F2F7F3;

    border-radius:50%;

    cursor:pointer;

    transition:.3s;

}

.header-icon:hover{

    background:#e6efe7;

}

.header-icon i{

    color:#065a34;

    font-size:18px;

}


/* ==================================================
   PROFILE MENU
================================================== */

.profile-menu{

    position:absolute;

    top:60px;

    left:0;

    min-width:220px;

    background:#fff;

    border-radius:14px;

    box-shadow:0 8px 25px rgba(0,0,0,.12);

    overflow:hidden;

    display:none;

    z-index:999;

}

.profile-menu.show{

    display:block;

}

.profile-menu a{

    display:flex;

    align-items:center;

    gap:10px;

    padding:14px 16px;

    color:#333;

    transition:.3s;

}

.profile-menu a:hover{

    background:#f5f8f5;

}

.profile-menu i{

    width:18px;

    color:#065a34;

}
/* ===================================
   SOCIAL PROFILE
=================================== */

.social-profile{

    background:#fff;

    border-radius:30px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.profile-cover{

    height:280px;

    background:
    linear-gradient(
    135deg,
    #065a34,
    #0d7a47,
    #20b26b
    );

    position:relative;
}

.cover-overlay{

    position:absolute;
    inset:0;

    background:
    radial-gradient(
        circle at top left,
        rgba(255,255,255,.20),
        transparent 40%
    );
}

.profile-avatar-social{

    position:absolute;

    bottom:-70px;

    left:50%;

    transform:translateX(-50%);
}

.profile-avatar-social img{

    width:150px;

    height:150px;

    border-radius:50%;

    object-fit:cover;

    border:6px solid #fff;

    box-shadow:0 8px 25px rgba(0,0,0,.20);
}

.profile-body-social{

    padding:90px 30px 30px;

    text-align:center;
}

.profile-name-social{

    color:#065a34;

    font-size:34px;

    font-weight:700;
}

.profile-job-social{

    color:#777;

    margin-top:8px;

    font-size:18px;
}

.profile-badges-social{

    margin-top:20px;
}

.social-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    border-radius:30px;

    background:#e8f5e9;

    color:#065a34;

    font-weight:600;
}

.profile-stats{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-top:30px;
}

.profile-stat{

    background:#f8faf8;

    border-radius:20px;

    padding:20px;
}

.profile-stat i{

    font-size:24px;

    color:#065a34;

    margin-bottom:10px;
}

.profile-stat strong{

    display:block;

    color:#065a34;

    margin-bottom:6px;
}

.profile-stat span{

    color:#777;
}

.profile-details-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

    margin-top:30px;
}

.profile-card-modern{

    background:#f8faf8;

    border-radius:20px;

    padding:25px;

    text-align:right;
}

.profile-card-modern h3{

    color:#065a34;

    margin-bottom:20px;
}

.detail-row{

    display:flex;

    justify-content:space-between;

    padding:12px 0;

    border-bottom:1px solid #ececec;
}

.detail-row:last-child{
    border-bottom:none;
}

.profile-buttons{

    display:flex;

    flex-direction:column;

    gap:12px;
}

@media(max-width:768px){

    .profile-details-grid,
    .profile-stats{

        grid-template-columns:1fr;
    }

    .profile-name-social{

        font-size:26px;
    }

}

/* ==================================================
   MENU BUTTON
================================================== */

.menu-btn{

    display:none;

    border:none;

    background:none;

    cursor:pointer;

    font-size:22px;

}

.menu-btn i{

    color:#065a34;

    font-size:20px;

}
/* ==================================================
   PART 04
   DASHBOARD
================================================== */


/* ==================================================
   PAGE TITLE
================================================== */

.page-title{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:28px;

    font-weight:700;

    color:#065a34;

    margin-bottom:25px;

}

.page-title i{

    color:#065a34;

}


/* ==================================================
   DASHBOARD CARDS
================================================== */

.cards-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-bottom:25px;

}

.stat-card{

    background:#fff;

    border-radius:18px;

    padding:25px;

    box-shadow:0 4px 15px rgba(0,0,0,.05);

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.stat-icon{

    margin-bottom:12px;

}

.stat-icon i{

    font-size:32px;

    color:#065a34;

}

.stat-title{

    font-size:14px;

    color:#777;

    margin-bottom:10px;

}

.stat-number{

    font-size:32px;

    font-weight:700;

    color:#065a34;

}


/* ==================================================
   QUICK ACTIONS
================================================== */

.quick-actions{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:15px;

    margin-bottom:30px;

}

.quick-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    background:#065a34;

    color:#fff;

    padding:16px;

    border-radius:14px;

    font-weight:600;

    transition:.3s;

}

.quick-btn:hover{

    background:#1b5e20;

    transform:translateY(-2px);

}

.quick-btn i{

    color:#fff;

    font-size:16px;

}


/* ==================================================
   SECTION TITLES
================================================== */

.section-title{

    font-size:20px;

    font-weight:700;

    color:#065a34;

    margin-bottom:15px;

}


/* ==================================================
   INFO BOXES
================================================== */

.info-box{

    margin-top:20px;

    padding:15px;

    background:#f8f9fa;

    border-radius:12px;

}

.attendance-box{

    margin-top:20px;

    padding:15px;

    background:#eef6ff;

    border-radius:12px;

}
/* ==================================================
   PART 05
   FORMS + INPUTS
================================================== */


/* ==================================================
   FORM CONTAINER
================================================== */

.customer-form{

    background:#fff;

    padding:25px;

    border-radius:20px;

    border:1px solid #edf2ed;

    box-shadow:0 2px 12px rgba(0,0,0,.06);

    margin-bottom:20px;

}


/* ==================================================
   FORM GRID
================================================== */

.form-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}


/* ==================================================
   FORM GROUP
================================================== */

.form-group{

    margin-bottom:20px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#333;

    font-size:14px;

}


/* ==================================================
   INPUTS
================================================== */

.form-group input,
.form-group select,
.form-group textarea{

    width:100%;

    padding:12px 15px;

    border:1px solid #dfe5df;

    border-radius:12px;

    background:#fff;

    font-size:15px;

    transition:.3s;

}

.form-group input{

    height:48px;

}

.form-group textarea{

    resize:vertical;

    min-height:120px;

}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

    outline:none;

    border-color:#065a34;

    box-shadow:0 0 0 3px rgba(46,125,50,.08);

}


/* ==================================================
   FILE INPUT
================================================== */

input[type="file"]{

    padding:10px;

    background:#f8faf8;

    cursor:pointer;

}


/* ==================================================
   REQUIRED LABEL
================================================== */

.required{

    color:#c62828;

    margin-right:3px;

}


/* ==================================================
   BUTTONS
================================================== */

.btn,
.save-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:12px 18px;

    border:none;

    border-radius:12px;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}
.btn i,
.save-btn i{

    color:#fff;

    font-size:14px;

}

.save-btn{

    background:#065a34;

    color:#fff;

}

.save-btn:hover{

    background:#1b5e20;

}


/* ==================================================
   IMAGE PREVIEW
================================================== */

.customer-image{

    max-width:100%;

    border-radius:20px;

    display:block;

}


/* ==================================================
   PROFILE IMAGE
================================================== */

.profile-avatar{

    display:flex;

    justify-content:center;

    margin-bottom:25px;

}

.profile-avatar img{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid #065a34;

    box-shadow:0 4px 15px rgba(0,0,0,.10);

}



/* ==================================================
   TOOLBAR
================================================== */
.toolbar{
    
    background: linear-gradient(135deg, #ffffff, #f5faf6);
    border: 1px solid #edf2ed;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:20px;

}
.current-page-title{

    font-size:22px;

    font-weight:700;

    color:#065a34;
}
@media(max-width:768px){

    .current-page-title{
        display:none;
    }

}

/* ==================================================
   ACTION BUTTONS WRAPPER
================================================== */

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* ==================================================
   TABLE WRAPPER
================================================== */

.crm-table-wrapper{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 2px 12px rgba(0,0,0,.06);

}


/* ==================================================
   TABLE
================================================== */

.crm-table{

    width:100%;

    border-collapse:collapse;

    background:#fff;

}

.crm-table thead{

    background:#f2f7f3;

}

.crm-table th{

    color:#065a34;

    font-weight:700;

    text-align: right;

    padding:16px;

    border-bottom:1px solid #e8ece8;

}

.crm-table td{
    padding:14px 16px;

    border-bottom:1px solid #f0f0f0;

    vertical-align:middle;

}

.crm-table tr:last-child td{

    border-bottom:none;

}

.crm-table tbody tr{

    transition:.2s;

}

.crm-table tbody tr:hover{

    background:#fafcfa;

}


/* ==================================================
   GENERAL BUTTON
================================================== */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    min-height:38px;

    padding:10px 14px;

    border:none;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}


/* ==================================================
   BUTTON COLORS
================================================== */

.btn-info,
.btn-view{

    background:#1565c0;

    color:#fff;

}

.btn-info:hover,
.btn-view:hover{

    background:#0d47a1;

}

.btn-success,
.btn-edit{

    background:#065a34;

    color:#fff;

}

.btn-success:hover,
.btn-edit:hover{

    background:#1b5e20;

}

.btn-danger,
.btn-delete{

    background:#c62828;

    color:#fff;

}

.btn-danger:hover,
.btn-delete:hover{

    background:#a51f1f;

}


/* ==================================================
   SMALL BUTTONS
================================================== */

.action-buttons .btn{

    min-width:95px;

    font-size:13px;

}


/* ==================================================
   STATUS BADGES
================================================== */

.status-badge{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:6px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}
.status-badge i{
    font-size:12px;
}

.crm-table td i{
    margin-left:5px;
}

.status-open{

    background:#e8f5e9;

    color:#065a34;

}

.status-closed{

    background:#ffebee;

    color:#c62828;

}

/* ==================================================
   PART 07
   PROFILE + HELPERS + FINAL FIXES
================================================== */


/* ==================================================
   PROFILE AVATAR
================================================== */

.profile-avatar{

    display:flex;

    justify-content:center;

    margin-bottom:25px;

}

.profile-avatar img{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid #065a34;

    box-shadow:0 4px 15px rgba(0,0,0,.10);

}


/* ==================================================
   USER AVATAR SIDEBAR
================================================== */

.user-avatar{

    display:flex;

    justify-content:center;

}

.user-avatar img{

    width:60px;

    height:60px;

    border-radius:50%;

    object-fit:cover;

    background:#fff;

    border:2px solid rgba(255,255,255,.25);

}


/* ==================================================
   NOTIFICATION BADGE
   
================================================== */

.notification-badge{

    position:absolute;

    top:-3px;

    left:-3px;

    min-width:18px;

    height:18px;

    padding:0 5px;

    border-radius:20px;

    background:#c62828;

    color:#fff;

    font-size:11px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

}
.notifications-toolbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:20px;
}

.notification-card{

    background:#fff;

    border:1px solid #edf2ed;

    border-right:4px solid #065a34;

    border-radius:16px;

    padding:18px;

    margin-bottom:15px;

    transition:.3s;
}

.notification-card:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.notification-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:15px;
}

.notification-header h4{

    color:#065a34;

    margin-bottom:8px;

    font-size:18px;
}

.notification-header p{

    color:#555;

    line-height:1.8;
}

.notification-date{

    margin-top:12px;

    color:#888;

    font-size:13px;

    display:flex;

    align-items:center;

    gap:6px;
}

.notification-delete{

    width:38px;

    height:38px;

    border-radius:10px;

    background:#ffebee;

    color:#c62828;

    display:flex;

    align-items:center;

    justify-content:center;
}

.notification-delete:hover{

    background:#c62828;

    color:#fff;
}

/* ==================================================
   ICONS
================================================== */

.crm-icon{

    width:22px;

    margin-left:10px;

    text-align:center;

}

.sidebar .crm-icon{

    color:#fff;

}

.btn .crm-icon{

    color:#fff;

}

.quick-btn .crm-icon{

    color:#fff;

}

.page-title .crm-icon{

    color:#065a34;

}

.header-icon i{

    color:#065a34;

    font-size:18px;

}

.menu-btn i{

    color:#065a34;

    font-size:18px;

}


/* ==================================================
   INFO BOX
================================================== */

.info-box{

    background:#f8f9fa;

    padding:15px;

    border-radius:12px;

    margin-top:20px;

}


/* ==================================================
   ATTENDANCE BOX
================================================== */

.attendance-box{

    background:#eef6ff;

    padding:15px;

    border-radius:12px;

    margin-top:20px;

}
.attendance-actions{

    display:flex;

    gap:10px;

    margin-bottom:20px;

    flex-wrap:wrap;
}

.empty-table{

    text-align:center;

    padding:25px !important;

    color:#777;
}


/* ==================================================
   SECTION TITLE
================================================== */

.section-title{

    font-size:20px;

    font-weight:700;

    color:#065a34;

    margin-bottom:20px;

}


/* ==================================================
   IMAGE HELPERS
================================================== */

.customer-image{

    max-width:100%;

    border-radius:20px;

    display:block;

}


/* ==================================================
   SPACING HELPERS
================================================== */

.mt-10{margin-top:10px;}
.mt-15{margin-top:15px;}
.mt-20{margin-top:20px;}
.mt-30{margin-top:30px;}

.mb-10{margin-bottom:10px;}
.mb-15{margin-bottom:15px;}
.mb-20{margin-bottom:20px;}
.mb-30{margin-bottom:30px;}


.text-right{text-align:right;}

.w-100{width:100%;}


/* ==================================================
   PROFILE MENU ICONS
================================================== */

#profileMenu i{

    width:18px;

    color:#065a34;

    margin-left:8px;

}

/* ==================================================
   eng card header
================================================== */

.profile-dropdown{
    position:relative;
}


.profile-trigger{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;

    height:52px;

    padding:6px 10px;

    border:1px solid #e5e7e5;
    border-radius:30px;

    background:#fff;
    cursor:pointer;
}

.profile-avatar-top{
    order:1;
}

.profile-avatar-top img{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #065a34;
}

.profile-info{
    order:2;
    flex:1;
    text-align:center;
}
.profile-info-box{

    padding:14px 16px;

    background:#f8faf8;

    border:1px solid #edf2ed;

    border-radius:12px;

    color:#333;

    font-weight:500;
}

.profile-name{
    font-size:14px;
    font-weight:700;
    color:#065a34;
    line-height:1.2;
}

.profile-role{
    font-size:11px;
    color:#888;
    margin-top:2px;
}

.profile-arrow{
    order:3;
    width:18px;
    text-align:left;
    color:#065a34;
    font-size:11px;
}

/* =========================
   QUICK ACTIONS
========================= */

.quick-actions-dropdown{
    position:relative;
}

.quick-action-btn{

    height:42px;

    padding:0 14px;

    border:none;

    border-radius:10px;

    background:linear-gradient(
    135deg,
    #065a34,
    #0d7a47,
    #20b26b

    )
    ;

    color:#fff;

    cursor:pointer;

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

    font-weight:600;

    transition:.3s;
}

.quick-action-btn:hover{
background:
    linear-gradient(
        135deg,
        #044728,
        #09653c,
        #169458
    );
}

.quick-menu{

    display:none;

    position:absolute;

    top:65px;

    left:0;

    width:220px;

    background:#fff;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    z-index:9999;
}

.quick-menu.show{
    display:block;
}

.quick-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 18px;

    color:#333;

    text-decoration:none;

    transition:.3s;
}

.quick-menu a:hover{
    background:#f5f8f5;
}

.quick-menu i{

    width:20px;

    color:#065a34;
}

/* ==========================================
   WELCOME CARD
========================================== */

.welcome-card{

    position:relative;

    background:linear-gradient(
        135deg,
        #ffffff,
        #f5faf6
    );

    border-radius:20px;

    min-height:120px;

    padding:25px;

    margin-bottom:25px;

    overflow:hidden;

    border:1px solid #edf2ed;

    display:flex;

    align-items:center;

    justify-content:space-between;
}

.welcome-content{

    display:flex;

    align-items:center;

    gap:18px;

    z-index:2;
}

.welcome-icon{

    width:60px;
    height:60px;

    border-radius:50%;

    background:#e7f3ea;

    color:#065a34;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;
}

.welcome-content h2{

    color:#065a34;

    font-size:36px;

    font-weight:700;

    margin-bottom:5px;
}

.welcome-content p{

    color:#777;

    font-size:15px;
}

.welcome-image{

    position:absolute;

    left:0;

    bottom:0;

    width:220px;

    opacity:.95;
}

.welcome-image img{

    width:100%;
    height:auto;
}
/* ===================================
   PAGE HERO
=================================== */

.page-hero{

    background:linear-gradient(
        135deg,
        #ffffff,
        #f5faf6
    );

    border:1px solid #edf2ed;

    border-radius:24px;

    padding:30px;

    margin-bottom:25px;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:20px;

    box-shadow:0 2px 12px rgba(0,0,0,.04);
}

.page-hero-icon{

    width:60px;
    height:60px;

    border-radius:50%;

    background:#e8f3eb;

    color:#065a34;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    flex-shrink:0;
}

.page-hero-content h1{

    margin:0;

    color:#065a34;

    font-size:42px;

    font-weight:700;
}

.page-hero-content p{

    margin-top:6px;

    color:#777;

    font-size:15px;
}
/* =========================
   MODERN TOOLBAR
========================= */

.modern-toolbar{

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:#fff;

    border:1px solid #edf2ed;

    border-radius:18px;

    padding:18px 22px;

    margin-bottom:20px;
}

.toolbar-info h3{

    margin:0;

    color:#065a34;

    font-size:20px;

    display:flex;
    align-items:center;
    gap:10px;
}

.toolbar-info span{

    display:block;

    margin-top:5px;

    color:#888;

    font-size:13px;
}

.toolbar-actions{

    display:flex;
    gap:10px;
}
.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin-top:20px;

    flex-wrap:wrap;
    padding: 20px;

}

.pagination a{

    width:40px;

    height:40px;

    border-radius:10px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#f3f5f4;

    color:#065a34;

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}

.pagination a:hover{

    background:linear-gradient(
    135deg,
    #065a34,
    #0d7a47,
    #20b26b

    );

    color:#fff;

}

.pagination a.active{

    background:
    linear-gradient(
    135deg,
    #065a34,
    #0d7a47,
    #20b26b

    );

    color:#fff;

}
/* ==========================
   MOBILE HEADER BRAND
========================== */

.mobile-brand{
    display:none;
}

/* ==================================================
   MOBILE RESPONSIVE - ALL IN ONE
================================================== */
/* Mobile */
@media (max-width:1080px){

    /* Layout */
    .main-content{
        margin-right:0;
    }

    .content{
        padding:15px;
    }

    /* Login */
    .login-card{
        padding:20px;
    }

    .login-card h1{
        font-size:24px;
    }

    /* Sidebar */
    .sidebar{
        position:fixed;
        top:0;
        right:-300px;
        width:300px;
        height:100vh;
        z-index:9999;
        transition:.3s;
    }

    .sidebar.show{
        right:0;
    }

 .sidebar-overlay{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.6);
        z-index:9997;
    }
.sidebar{
        z-index:9999;
    }
    .sidebar-overlay.show{
        display:block !important;
    }

    .close-sidebar{
        display:flex;
        align-items:center;
        justify-content:center;
        position:absolute;
        top:15px;
        left:15px;
        width:40px;
        height:40px;
        border:none;
        border-radius:50%;
        background:#fff;
        color:#065a34;
        font-size:18px;
        cursor:pointer;
        z-index:10000;
    }

    body.sidebar-open{
        overflow:hidden;
    }

    /* Header */

    .header-divider{
        display:none;
    }

    .topbar{
        height:70px;
        padding:0 15px;
    }

    .page-heading{
        font-size:18px;
    }

    .menu-btn{
        display:block;
    }

    .profile-menu{
        left:10px;
        right:10px;
        min-width:auto;
    }

    .current-page-title{
        display:none;
    }

    /* Dashboard */

    .cards-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .stat-card{
        padding:15px;
    }

    .stat-number{
        font-size:24px;
    }

    .quick-actions{
        grid-template-columns:1fr;
    }

    /* Forms */

    .form-grid{
        grid-template-columns:1fr;
    }

    .customer-form{
        padding:18px;
    }

    /* Tables */

    .toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .action-buttons{
        flex-direction:column;
        width:100%;
    }

    .action-buttons .btn{
        width:100%;
    }

    .crm-table,
    .crm-table tbody,
    .crm-table tr,
    .crm-table td{
        display:block;
    }

    .crm-table thead{
        display:none;
    }

    .crm-table tr{
        background:#fff;
        margin-bottom:15px;
        padding:15px;
        border-radius:16px;
        box-shadow:0 2px 10px rgba(0,0,0,.08);
    }

    .crm-table td{
        padding:6px 0;
        border:none;
    }

    .crm-table td:nth-child(1){
        font-size:18px;
        font-weight:700;
        color:#065a34;
        margin-bottom:8px;
    }
        /* Attendance */

    .attendance-actions{
        flex-direction:column;
    }

    .attendance-actions .btn{
        width:100%;
    }

    /* Final Fixes */

    .page-title{
        font-size:22px;
        flex-wrap:wrap;
    }

    .topbar-right{
        gap:10px;
    }

    .header-icon{
        width:38px;
        height:38px;
    }

    .user-info-row{
        gap:10px;
    }

    .user-avatar img{
        width:55px;
        height:55px;
    }

    .user-name{
        font-size:15px;
    }

    .quick-btn{
        width:100%;
    }

    /* Profile Dropdown */

    .profile-dropdown{
        position:static !important;
    }

    .profile-trigger{
        width:75px;
        min-width:auto;
        padding:8px;
        gap:6px;
        border:0;
    }

    .profile-info{
        display:none;
    }

    .profile-avatar-top img{
        width:32px;
        height:32px;
    }

    .profile-arrow{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    #profileMenu{
        position:fixed !important;
        top:80px !important;
        width:230px !important;
        animation:fadeIn .2s ease;
        right: auto;
    }

    #profileMenu a{
        display:flex !important;
        align-items:center;
        gap:10px;
        padding:14px 16px !important;
        white-space:nowrap !important;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    /* Quick Actions */

    .quick-action-btn{
        width:38px;
        height:38px;
        padding:0;
        border-radius:50%;
        justify-content:center;
        display:none;
    }

    .quick-action-btn span,
    .quick-action-btn .action-arrow,
    .quick-action-btn .fa-chevron-down{
        display:none;
    }

    /* Welcome Card */

    .welcome-card{
        min-height:95px;
        padding:15px;
    }

    .welcome-content h2{
        font-size:24px;
    }

    .welcome-content p{
        font-size:13px;
    }

    .welcome-icon{
        width:50px;
        height:50px;
        font-size:20px;
    }

    .welcome-image{
        width:140px;
    }

    /* Page Hero */

    .page-hero{
        padding:18px;
        gap:12px;
    }

    .page-hero-icon{
        width:50px;
        height:50px;
        font-size:20px;
    }

    .page-hero-content h1{
        font-size:26px;
    }

    .page-hero-content p{
        font-size:13px;
    }

    /* Modern Toolbar */

    .modern-toolbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .toolbar-actions{
        width:100%;
    }

    .toolbar-actions .btn{
        width:100%;
        justify-content:center;
    }
    .mobile-brand{
        display:flex;
        align-items:center;
        gap:8px;
    }

    .mobile-brand img{
        width:34px;
        height:34px;
        object-fit:contain;
    }

    .mobile-brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}
.mobile-brand-text .brand-name{
    font-size:12px;
    font-weight:700;
    color:#065a34;
    white-space:nowrap;
}

.mobile-brand-text .brand-subtitle{
    font-size:9px;
    font-weight:500;
    color:#7a8b7d;
    letter-spacing:1px;
    white-space:nowrap;
    text-align: center;
}
    .mobile-brand-text span{
        font-size:12px;
        font-weight:700;
        color:#065a34;
        white-space:nowrap;
    }

    .topbar-right{
        display:flex;
        align-items:center;
        gap:10px;
    }

}

@media (min-width:1080px) and (max-width:1199px){

    /* Layout */

    .main-content{
        margin-right:270px;
    }

    .content{
        padding:25px;
    }

    /* Login */

    .login-card{
        padding:35px;
        max-width:500px;
    }

    .login-card h1{
        font-size:30px;
    }

    /* Sidebar */

    .sidebar{
        position:fixed;
        top:0;
        right:0;
        width:270px;
        height:100vh;
        z-index:999;
    }

    .sidebar.show{
        right:0;
    }

    .sidebar-overlay{
        display:none !important;
    }

    .close-sidebar{
        display:none !important;
    }

    body.sidebar-open{
        overflow:auto;
    }

    /* Header */

    .header-divider{
        display:block;
    }

    .topbar{
        height:80px;
        padding:0 25px;
    }

    .page-heading{
        font-size:22px;
    }

    .menu-btn{
        display:none;
    }

    .profile-menu{
        min-width:260px;
    }

    .current-page-title{
                display: none;
    }
        /* Dashboard */

    .cards-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .stat-card{
        padding:22px;
    }

    .stat-number{
        font-size:30px;
    }

    .quick-actions{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    /* Forms */

    .form-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .customer-form{
        padding:25px;
    }

    /* Tables */

    .toolbar{
        display:flex;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        gap:15px;
    }

    .action-buttons{
        display:flex;
        flex-direction:row;
        gap:10px;
        width:auto;
    }

    .action-buttons .btn{
        width:auto;
    }

    .crm-table{
        display:table;
        width:100%;
    }

    .crm-table thead{
        display:table-header-group;
    }

    .crm-table tbody{
        display:table-row-group;
    }

    .crm-table tr{
        display:table-row;
    }

    .crm-table td,
    .crm-table th{
        display:table-cell;
        padding:12px;
    }

    .crm-table td:nth-child(1){
        font-size:15px;
        font-weight:600;
        margin:0;
    }
        /* Attendance */

    .attendance-actions{
        display:flex;
        flex-direction:row;
        gap:10px;
        flex-wrap:wrap;
    }

    .attendance-actions .btn{
        width:auto;
        min-width:150px;
    }

    /* Final Fixes */

    .page-title{
        font-size:30px;
    }

    .topbar-right{
        gap:15px;
    }

    .header-icon{
        width:42px;
        height:42px;
    }

    .user-info-row{
        gap:12px;
    }

    .user-avatar img{
        width:60px;
        height:60px;
    }

    .user-name{
        font-size:16px;
    }

    .quick-btn{
        width:auto;
    }

    /* Profile Dropdown */

    .profile-dropdown{
        position:relative !important;
    }

    .profile-trigger{
        width:auto;
        min-width:140px;
        padding:10px 14px;
        gap:10px;
        border:1px solid #e5e7eb;
    }

    .profile-info{
        display:flex;
    }

    .profile-avatar-top img{
        width:38px;
        height:38px;
    }

    .profile-arrow{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    #profileMenu{
        position:absolute !important;
        top:100% !important;
        width:260px !important;
        right:0;
        left:auto;
    }

    #profileMenu a{
        display:flex !important;
        align-items:center;
        gap:10px;
        padding:14px 16px !important;
    }
        /* Quick Actions */

    .quick-action-btn{
        width:42px;
        height:42px;
        padding:0;
        border-radius:50%;
        justify-content:center;
        display:flex;
    }

    .quick-action-btn span,
    .quick-action-btn .action-arrow,
    .quick-action-btn .fa-chevron-down{
        display:none;
    }

    /* Welcome Card */

    .welcome-card{
        min-height:130px;
        padding:25px;
    }

    .welcome-content h2{
        font-size:30px;
    }

    .welcome-content p{
        font-size:15px;
    }

    .welcome-icon{
        width:60px;
        height:60px;
        font-size:24px;
    }

    .welcome-image{
        width:180px;
    }

    /* Page Hero */

    .page-hero{
        padding:25px;
        gap:15px;
    }

    .page-hero-icon{
        width:60px;
        height:60px;
        font-size:24px;
    }

    .page-hero-content h1{
        font-size:32px;
    }

    .page-hero-content p{
        font-size:14px;
    }
        /* Modern Toolbar */

    .modern-toolbar{
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:15px;
    }

    .toolbar-actions{
        width:auto;
        display:flex;
        gap:10px;
        flex-wrap:wrap;
    }

    .toolbar-actions .btn{
        width:auto;
        justify-content:center;
    }

    .mobile-brand{
        display:flex;
        align-items:center;
        gap:10px;
    }

    .mobile-brand img{
        width:40px;
        height:40px;
        object-fit:contain;
    }

    .mobile-brand-text{
        display:flex;
        flex-direction:column;
        line-height:1.2;
    }

    .mobile-brand-text .brand-name{
        font-size:14px;
        font-weight:700;
    }

    .mobile-brand-text .brand-subtitle{
        font-size:10px;
    }

    .mobile-brand-text span{
        font-size:14px;
        font-weight:700;
    }

    .topbar-right{
        display:flex;
        align-items:center;
        gap:15px;
    }

}

@media (max-width:480px){

    /* Layout */

    .main-content{
        margin-right:0;
    }

    .content{
        padding:10px;
    }

    /* Login */

    .login-card{
        padding:15px;
    }

    .login-card h1{
        font-size:22px;
    }

    /* Sidebar */

    .sidebar{
        width:280px;
        right:-280px;
    }

    .sidebar.show{
        right:0;
    }

    .close-sidebar{
        width:36px;
        height:36px;
        font-size:16px;
    }

    /* Header */

    .topbar{
        height:65px;
        padding:0 10px;
    }

    .page-heading{
        font-size:16px;
    }

    .current-page-title{
        display:none;
    }

    .header-icon{
        width:34px;
        height:34px;
    }

    .topbar-right{
        gap:8px;
    }
        /* Dashboard */

    .cards-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .stat-card{
        padding:14px;
    }

    .stat-number{
        font-size:22px;
    }

    .quick-actions{
        grid-template-columns:1fr;
    }

    .quick-btn{
        width:100%;
    }

    /* Forms */

    .form-grid{
        grid-template-columns:1fr;
    }

    .customer-form{
        padding:15px;
    }

    /* Tables */

    .toolbar{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .action-buttons{
        flex-direction:column;
        width:100%;
    }

    .action-buttons .btn{
        width:100%;
    }
        .crm-table,
    .crm-table tbody,
    .crm-table tr,
    .crm-table td{
        display:block;
    }

    .crm-table thead{
        display:none;
    }

    .crm-table tr{
        padding:12px;
        margin-bottom:12px;
        border-radius:14px;
    }

    .crm-table td{
        padding:5px 0;
        font-size:13px;
    }

    .crm-table td:nth-child(1){
        font-size:16px;
        margin-bottom:6px;
    }

    /* Attendance */

    .attendance-actions{
        flex-direction:column;
    }

    .attendance-actions .btn{
        width:100%;
    }

    /* Page */

    .page-title{
        font-size:20px;
    }

    .user-avatar img{
        width:48px;
        height:48px;
    }

    .user-name{
        font-size:14px;
    }
        /* Profile */

    .profile-trigger{
        width:65px;
        padding:6px;
        gap:4px;
    }

    .profile-info{
        display:none;
    }

    .profile-avatar-top img{
        width:30px;
        height:30px;
    }

    #profileMenu{
        width:210px !important;
        top:70px !important;
    }

    #profileMenu a{
        padding:12px 14px !important;
        font-size:13px;
    }

    /* Welcome Card */

    .welcome-card{
        min-height:85px;
        padding:12px;
    }

    .welcome-content h2{
        font-size:20px;
    }

    .welcome-content p{
        font-size:12px;
    }

    .welcome-icon{
        width:45px;
        height:45px;
        font-size:18px;
    }

    .welcome-image{
        width:100px;
    }
        /* Hero */

    .page-hero{
        padding:15px;
        gap:10px;
    }

    .page-hero-icon{
        width:45px;
        height:45px;
        font-size:18px;
    }

    .page-hero-content h1{
        font-size:22px;
    }

    .page-hero-content p{
        font-size:12px;
    }

    /* Toolbar */

    .modern-toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .toolbar-actions{
        width:100%;
    }

    .toolbar-actions .btn{
        width:100%;
    }

    /* Brand */

    .mobile-brand img{
        width:30px;
        height:30px;
    }

    .mobile-brand-text .brand-name{
        font-size:11px;
    }

    .mobile-brand-text .brand-subtitle{
        font-size:8px;
    }

}

/* =====================
   HEADER LAYOUT
===================== */

.topbar{

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.topbar-right{
    flex:1;
}

.topbar-center{
        margin-left: 1%;
    width: 40%;

    flex:1;

    display:flex;

    justify-content:center;

}

.topbar-left{


    display:flex;

    justify-content:flex-end;

    align-items:center;

}

/* =====================
   SEARCH BOX
===================== */

.global-search-form{

    position:relative;

    width:500px;

    max-width:100%;

}

.global-search-form i{

    position:absolute;

    right:15px;

    top:50%;

    transform:translateY(-50%);

    color:#999;

}

.global-search-form input{

    width:100%;

    height:44px;

    border:1px solid #dfe5df;

    border-radius:25px;

    padding:0 45px 0 15px;

    background:#fff;

}

.global-search-form input:focus{

    outline:none;

    border-color:#065a34;

}

/* اخفاءه على الموبايل */

@media(max-width:1080px){

    .topbar-center{
        display:none;
    }

}


