:root {
    --primary-yellow: #FDB913;
    --secondary-yellow: #FFCA2C;
    --dark-yellow: #E5A712;
    --light-yellow: #FFF4D6;
    --white: #FFFFFF;
    --dark: #2C3E50;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --success: #28A745;
    --danger: #DC3545;
    --info: #17A2B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--white) 100%);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
   background-color: #fff;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    padding: 20px 30px;
    text-align: center;
    color: var(--white);
}

.login-header .logo {
    width: 163px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-body {
    padding: 40px 30px;
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(253, 185, 19, 0.25);
}

.input-group-text {
    background: var(--primary-yellow);
    color: var(--white);
    border: none;
    border-radius: 10px 0 0 10px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.4);
    color: var(--white);
}

/* Dashboard Styles */
.sidebar {
    background: linear-gradient(180deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    min-height: 100vh;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header .logo {
    width: 60%;
    height: 60px;
    /* background: var(--white); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-header h4 {
    color: var(--white);
    font-weight: 700;
    margin: 0;
    font-size: 20px;
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0;
    font-size: 13px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 15px 25px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: var(--white);
    color: var(--white);
}

.menu-item i {
    width: 30px;
    font-size: 18px;
}

.main-content {
    margin-left: 260px;
    padding: 0;
    min-height: 100vh;
    background: var(--light-gray);
}

.top-navbar {
    background: var(--white);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title h2 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.page-title p {
    color: var(--gray);
    margin: 5px 0 0;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-icon:hover {
    background: var(--primary-yellow);
    color: var(--white);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.content-area {
    padding: 30px;
}

/* Stats Cards */
.stats-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-yellow);
    margin-bottom: 20px;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.stats-icon.yellow {
    background: rgba(253, 185, 19, 0.1);
    color: var(--primary-yellow);
}

.stats-icon.green {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.stats-icon.blue {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.stats-icon.red {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.stats-card h6 {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.stats-card h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-card .badge {
    font-size: 12px;
    padding: 5px 10px;
}

/* Branch Cards */
.branch-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.branch-header h4 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-badge {
    background: var(--primary-yellow);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.department-section {
    margin-bottom: 20px;
}

.department-title {
    background: var(--light-yellow);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-title h5 {
    margin: 0;
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.metric-item {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.metric-item:hover {
    background: var(--primary-yellow);
    color: var(--white);
    transform: translateY(-3px);
}

.metric-item .number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.metric-item .label {
    font-size: 13px;
    color: #050506;
    font-weight: 600;
}

.metric-item:hover .label {
    color: var(--white);
}

/* Table Styles */
.data-table {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h4 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.btn-add {
    background: var(--primary-yellow);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
}

.table {
    margin: 0;
}

.table thead {
    background: var(--light-yellow);
}

.table thead th {
    border: none;
    color: var(--dark);
    font-weight: 700;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Action Buttons */
.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.edit {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.action-btn.delete {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.action-btn.view {
    background: rgba(253, 185, 19, 0.1);
    color: var(--primary-yellow);
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-bar-custom {
    background: var(--light-gray);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    background: var(--primary-yellow);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(253, 185, 19, 0.1);
    color: var(--primary-yellow);
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.1);
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-navbar {
        flex-direction: column;
        gap: 15px;
    }
}

/* Chart Container */
.chart-container {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.chart-container h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action-btn {
    background: var(--white);
    border: 2px solid var(--primary-yellow);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark);
    text-decoration: none;
    display: block;
}

.quick-action-btn:hover {
    background: var(--primary-yellow);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(253, 185, 19, 0.3);
}

.quick-action-btn i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 15px;
}

/* Activity Feed */
.activity-feed {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content h6 {
    margin: 0 0 5px;
    color: var(--dark);
    font-weight: 600;
}

.activity-content p {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
}

.activity-time {
    color: var(--gray);
    font-size: 12px;
    margin-top: 5px;
}


            /* Table container */
            .data-table {
                background: #fff;
                border-radius: 15px;
                padding: 20px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                border: 1px solid #eee;
            }

            .table-header h4 {
                font-weight: 600;
                color: #444;
                display: flex;
                align-items: center;
                gap: 10px;
                margin-bottom: 20px;
            }


            /* Table styling */
            #myTable {
                border-collapse: separate;
                border-spacing: 0 10px;
                width: 100%;
            }

            #myTable thead tr th {
                background: #f8f9fc;
                padding: 14px;
                font-size: 14px;
                color: #444;
                border-bottom: 2px solid #eee;
            }

            #myTable tbody tr {
                background: #ffffff;
                border-radius: 10px;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
                transition: all 0.3s ease-in-out;
            }

            #myTable tbody tr:hover {
                transform: scale(1.01);
                box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
            }

            #myTable tbody td {
                padding: 14px;
                font-size: 14px;
                color: #333;
                vertical-align: middle;
            }


            /* Status badge styling */
            .status-badge {
                padding: 6px 12px;
                border-radius: 20px;
                font-weight: 600;
                font-size: 13px;
            }

            .pending {
                background: #ffeeba;
                color: #856404;
            }

            .interested {
                background: #c3e6cb;
                color: #155724;
            }

            .not_interested {
                background: #f5c6cb;
                color: #721c24;
            }

            .follow_up {
                background: #bee5eb;
                color: #0c5460;
            }

            /* Action buttons */
            .action-btn {
                border: none;
                background: #fff;
                padding: 8px 10px;
                border-radius: 8px;
                cursor: pointer;
                transition: 0.2s ease-in-out;
                font-size: 16px;
                margin-right: 5px;
            }

            .action-btn.view {
                color: #0d6efd;
                background: rgba(13, 110, 253, 0.1);
            }

            .action-btn.edit {
                color: #0d6efd;
                background: rgba(13, 110, 253, 0.1);
            }

            .action-btn.delete {
                color: #dc3545;
                background: rgba(220, 53, 69, 0.1);
            }

            .action-btn:hover {
                transform: scale(1.15);
            }

            .custom-head th {
                font-weight: 600;
            }

