.card {
    transition: 0.3s;
}

.form-control:focus {
    border-color: gold;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
}

/*    .card:hover {
        transform: translateY(-5px);
    }
*/
.progress {
    height: 18px;
    border-radius: 20px;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: #f4f7fc;
}

.btn-primary {
    --bs-btn-bg: #B19055;
    --bs-btn-border-color: #B19055;
    --bs-btn-hover-bg: #7D643C;
    --bs-btn-hover-border-color: #7D643C;
    --bs-btn-active-bg: #7D643C;
    --bs-btn-active-border-color: #7D643C;
    --bs-btn-focus-shadow-rgb: 177, 144, 85;
    background-color: #B19055;
    border-color: #B19055;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #7D643C;
        border-color: #7D643C;
        color: #fff;
    }

    .btn-primary:focus {
        background-color: #7D643C;
        border-color: #7D643C;
        color: #fff;
    }
    .btn-primary.active {
        background-color: #7D643C;
        border-color: #7D643C;
        color: #fff;
    }

.card-header {
    background-color: #7D643C;
    color: white;
    border-color: #B19055;
}

.btn-outline-primary {
    --bs-btn-border-color: #B19055;
    --bs-btn-hover-bg: #7D643C;
    --bs-btn-hover-border-color: #7D643C;
    --bs-btn-active-bg: #7D643C;
    --bs-btn-active-border-color: #7D643C;
    --bs-btn-focus-shadow-rgb: 177, 144, 85;
    color: #B19055;
    border-color: #B19055;
}

    .btn-outline-primary:hover {
        color: #fff;
        background-color: #7D643C;
        border-color: #7D643C;
    }

.btn-outline-gold {
    color: #b8860b;
    border: 1px solid #d4af37;
    background-color: transparent;
}

    .btn-outline-gold:hover {
        color: #fff;
        background-color: #7D643C;
        border-color: #d4af37;
    }

    .btn-outline-gold:focus,
    .btn-outline-gold:active {
        border: 1px solid #d4af37;
    }
    
    /*.btn {
    color: #FFFFFF;
    background-color: #B19055;
    border-color: #B19055;
    border-radius: 10px;
    font-weight: 700;
}

    .btn:hover {
        color: #FFFFFF;
        background-color: #7D643C;
        border-color: #7D643C;
    }
*/
.main-container {
    display: flex;
    min-height: 100vh;
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    margin: auto;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
}

/* Content */

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-title {
    margin: 0;
    font-weight: 700;
}

.notification-btn {
    position: relative;
    font-size: 24px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    left: -8px;
    background: red;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */

.dashboard-card {
    border: none;
    border-radius: 24px;
    padding: 25px;
    color: white;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

    .dashboard-card h2 {
        font-size: 34px;
        font-weight: bold;
    }

    .dashboard-card i {
        position: absolute;
        left: 20px;
        bottom: 20px;
        font-size: 60px;
        opacity: 0.2;
    }

.bg-primary-gradient {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Table */

.modern-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.table thead {
    background: #f8fafc;
}
/* =========================
   SIDEBAR
=========================*/

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100vh;
    background: linear-gradient(150deg, #C8AA64, #6E5F43);
    /*background: linear-gradient(120deg, #DCB464, #6E5F43);*/
    /*background: linear-gradient(120deg, #2563eb, #3e3a8a);*/
    /*    linear-gradient(180deg,#2563eb,#1e3a8a);*/ 
    color: white;
    transition: .3s;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0,0,0,.08);
}
    
    .sidebar.collapsed {
        width: 90px;
    }

/* Header */

.sidebar-header {
    padding: 2px 25px 3px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.logo-box {
    /*    width: 55px;
    height: 55px;
    background: rgba(255,255,255,.15);
    border-radius: 18px;
    display: flex;
    font-size: 26px;
    width: 100%;
    align-items: center;
    justify-content: center;
*/
}

.logo-title {
    font-weight: 800;
    font-size: 18px;
}

.logo-subtitle {
    font-size: 12px;
    opacity: .8;
}

/* Menu */

.sidebar-menu {
    padding: 20px 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 8px;
    transition: .3s;
}

    .sidebar-link:hover {
        background: rgba(255,255,255,.12);
        color: white;
    }

    .sidebar-link i {
        font-size: 20px;
    }

/* Collapse */

.sidebar.collapsed .logo-title,
.sidebar.collapsed .logo-subtitle,
.sidebar.collapsed .sidebar-link span {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
}

/* =========================
   MAIN CONTENT
=========================*/

.main-content {
    margin-right: 270px;
    transition: .3s;
    min-height: 100vh;
    background: #f4f7fb;
}

    .main-content.expanded {
        margin-right: 90px;
    }

/* =========================
   TOPBAR
=========================*/

.topbar {
    top: 0px;
    height: 80px;
    background: #f4f7fb;
    border-bottom: 1px solid gold;
    padding: 0 25px;
    display: flex;
    position: sticky;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    z-index: 999;
}

.toggle-btn,
.icon-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 14px;
    background: #f1f5f9;
    font-size: 20px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   CONTENT
=========================*/

.page-content {
    padding: 30px;
}

/* =========================
   MOBILE
=========================*/

@media(max-width:991px) {

    .sidebar {
        transform: translateX(100%);
    }

        .sidebar.mobile-show {
            transform: translateX(0);
        }

    .main-content {
        margin-right: 0 !important;
    }

    .card {
        border-radius: 15px;
    }

    .form-control-lg {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .row {
        gap: 24px;
    }

    body {
        background: #f4f7fb;
        font-family: 'Cairo';
    }
     
}
