   :root {
            --primary-blue: #2c5aa0;
            --secondary-blue: #4472c4;
            --light-blue: #e8f1ff;
            --dark-gray: #2d3748;
            --medium-gray: #4a5568;
            --light-gray: #f7fafc;
            --success-green: #38a169;
            --warning-orange: #ed8936;
            --danger-red: #e53e3e;
            --text-dark: #1a202c;
            --border-color: #e2e8f0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--light-gray);
            color: var(--text-dark);
        }
         /*  Sidebar  css*/
          .sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 210px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding-top: 20px;
    color: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #e2e8f0;
    font-weight: 500;
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    opacity: 0.8;
}

.sidebar .nav-link:hover i {
    opacity: 1;
}

.sidebar .navbar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.main-content {
    margin-left: 100px;
    padding: 20px;
    min-height: 100vh;
    background-color: #f8fafc;
}

.arrow-icon {
    transition: transform 0.3s ease;
    color: #e2e8f0;
    opacity: 0.7;
    font-size: 12px;
    margin-left: 8px;
}

.arrow-icon.rotate {
    transform: rotate(90deg);
    opacity: 1;
}

.dropdown-toggle {
    color: #e2e8f0;
    font-weight: 500;
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.dropdown-toggle .nav-link {
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.dropdown-toggle .arrow-icon {
    margin-left: auto;
    font-size: 12px;
}

.dropdown-content {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 32px;
}

.dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-content .nav-link {
    font-size: 0.9em;
    padding: 10px 15px;
    margin: 2px 0;
    color: #cbd5e1;
}

.dropdown-content .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

/* Logout button styling */
.sidebar form {
    margin-top: auto;
    padding: 0 12px 20px 12px;
}

.sidebar form button {
    background: none;
    border: none;
    color: #e2e8f0;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.sidebar form button:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    transform: translateX(5px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        display: none;
        position: absolute;
        z-index: 1050;
        width: 280px;
    }
    
    .content {
        margin-left: 0;
    }
    
    .sidebar.show {
        display: block;
    }
}

/* Mobile offcanvas styling */
.offcanvas {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: #ffffff;
    font-weight: 600;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    color: #e2e8f0;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.offcanvas .dropdown-toggle {
    color: #e2e8f0;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.offcanvas .dropdown-toggle .nav-link {
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.offcanvas .arrow-icon {
    margin-left: 8px;
    font-size: 12px;
}

.offcanvas .dropdown-content {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Smooth animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
        /* sidebar css completed */
      
        /* .main-content {
            margin-left: 60px;
            padding: 20px;
            min-height: 100vh;
            transition: margin-left 0.3s ease;
        } */

        .main-content.expanded {
            margin-left: 220px;
        }

        .header {
            background: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .stat-card .stat-icon {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: var(--primary-blue);
            opacity: 0.3;
        }

        .stat-card h6 {
            color: var(--medium-gray);
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .stat-card h3 {
            color: var(--text-dark);
            font-weight: 600;
            margin-bottom: 10px;
        }

        .stat-card .change {
            font-size: 0.85rem;
        }

        .change.positive { color: var(--success-green); }
        .change.negative { color: var(--danger-red); }

        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        .chart-container {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .table-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .table-header {
            background: var(--light-blue);
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

       

        
        .status-badge {
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .status-present { background: var(--light-blue); color: var(--primary-blue); }
        .status-absent { background: #fed7d7; color: var(--danger-red); }
        .status-completed { background: #c6f6d5; color: var(--success-green); }
        .status-pending { background: #feebc8; color: var(--warning-orange); }

        .location-tracking {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            height: 400px;
        }

        #map {
            width: 100%;
            height: 320px;
            border-radius: 8px;
        }

        .birthday-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .birthday-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary-blue);
        }

        .birthday-info h6 {
            margin: 0;
            color: var(--text-dark);
        }

        .birthday-info small {
            color: var(--medium-gray);
        }

        .cake-emoji {
            font-size: 1.5rem;
            margin-left: auto;
        }

        .calendar-container {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .task-item {
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 10px;
        }

        .task-item h6 {
            margin: 0 0 5px 0;
            color: var(--text-dark);
        }

        .task-meta {
            font-size: 0.8rem;
            color: var(--medium-gray);
        }

        .notification-badge {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--danger-red);
            color: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
            cursor: pointer;
            z-index: 1001;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .bar-chart-container {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            height: 400px;
        }

        .bar-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .bar-label {
            width: 100px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .bar-container {
            flex: 1;
            height: 25px;
            background-color: var(--light-gray);
            border-radius: 12px;
            overflow: hidden;
            margin: 0 10px;
            position: relative;
        }

        .bar-fill {
            height: 100%;
            border-radius: 12px;
            transition: width 2s ease-out;
            width: 0;
        }

        .bar-value {
            font-size: 0.8rem;
            font-weight: 600;
            min-width: 60px;
            text-align: right;
        }

        .bar-fill.digital-ads { background: linear-gradient(90deg, #2c5aa0, #4472c4); }
        .bar-fill.social-media { background: linear-gradient(90deg, #38a169, #48bb78); }
        .bar-fill.print-media { background: linear-gradient(90deg, #ed8936, #f6ad55); }
        .bar-fill.events { background: linear-gradient(90deg, #e53e3e, #fc8181); }
        .bar-fill.other { background: linear-gradient(90deg, #805ad5, #9f7aea); }

        @media (max-width: 768px) {
            
            .main-content {
                margin-left: 0;
            }
            
            .dashboard-grid {
                grid-template-columns: 1fr;
            }

            .notification-badge {
                top: 10px;
                right: 10px;
            }
        }



/* create employee css */
     .employee-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 100px;
    margin: 20px 0;
    margin-left: 50px; /* Adjust as needed */
}

        
        .form-title {
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 30px;
            font-size: 2rem;
            text-align: center;
        }
        
        .section-divider {
            border: none;
            height: 2px;
            background: linear-gradient(90deg, #0b0d0e, #111011);
            margin: 30px 0;
            border-radius: 1px;
        }
        
        .form-label {
            font-weight: 600;
            color: #34495e;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .form-label i {
            color: #17181a;
            width: 16px;
        }
        
        .required-field {
            color: #e74c3c;
            font-weight: bold;
        }
        
        .form-control, .form-select {
            border: 2px solid #e8f4fd;
            border-radius: 10px;
            padding: 12px 15px;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }
        
        .image-upload-container {
            border: 2px dashed #3498db;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8f9fa;
            position: relative;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .image-upload-container:hover {
            border-color: #2980b9;
            background: #e3f2fd;
        }
        
        .image-upload-container.dragover {
            border-color: #27ae60;
            background: #e8f5e8;
        }
        
        .upload-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        
        .upload-icon {
            font-size: 3rem;
            color: #3498db;
            margin-bottom: 10px;
        }
        
        .upload-text {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
        }
        
        .upload-subtext {
            font-size: 0.9rem;
            color: #7f8c8d;
        }
        
        .image-preview {
            display: none;
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .preview-image {
            max-width: 100%;
            max-height: 180px;
            border-radius: 10px;
            object-fit: cover;
        }
        
        .remove-image {
            position: absolute;
            top: -10px;
            right: -10px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
        }
        
        .camera-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
        }
        
        .btn-camera {
            background: #27ae60;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-camera:hover {
            background: #219a52;
        }
        
        .camera-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .camera-container {
            background: white;
            border-radius: 15px;
            padding: 20px;
            max-width: 600px;
            width: 90%;
        }
        
        .camera-video {
            width: 100%;
            border-radius: 10px;
            margin-bottom: 15px;
        }
        
        .camera-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        
        .btn {
            border-radius: 10px;
            padding: 12px 25px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: linear-gradient(45deg, #3498db, #2980b9);
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }
        
        .btn-outline-secondary {
            background: transparent;
            border: 2px solid #95a5a6;
            color: #95a5a6;
        }
        
        .btn-outline-secondary:hover {
            background: #95a5a6;
            color: white;
        }
        /* end of create employee css */
/* start of department css */
  .page-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin: 20px auto;
            max-width: 1000px;
            border: 1px solid #dee2e6;
        }

        .page-title {
            color: #343a40;
            font-weight: 600;
            text-align: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #dee2e6;
            padding-bottom: 15px;
        }

        .form-section {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            border: 1px solid #dee2e6;
        }

        .form-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 8px;
        }

        .form-control {
            border: 1px solid #ced4da;
            border-radius: 6px;
            padding: 10px 15px;
            font-size: 14px;
            transition: border-color 0.15s ease-in-out;
        }

        .form-control:focus {
            border-color: #6c757d;
            box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
        }

        .btn-primary {
            background-color: #6c757d;
            border-color: #6c757d;
            border-radius: 6px;
            padding: 10px 25px;
            font-weight: 600;
            transition: all 0.15s ease-in-out;
        }

        .btn-primary:hover {
            background-color: #5a6268;
            border-color: #545b62;
        }

        .table-section {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #dee2e6;
        }

        .table-header {
            background-color: #343a40;
            color: white;
            padding: 15px 20px;
            margin: 0;
            font-weight: 600;
        }

        .table {
            margin-bottom: 0;
        }

        .table th {
            background-color: #f8f9fa;
            border-top: none;
            font-weight: 600;
            color: #495057;
            padding: 15px;
        }

        .table td {
            padding: 15px;
            vertical-align: middle;
        }

        .btn-danger {
            background-color: #dc3545;
            border-color: #dc3545;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 12px;
        }

        .btn-danger:hover {
            background-color: #c82333;
            border-color: #bd2130;
        }

        /* Toggle Switch Styles */
        .toggle-switch {
            position: relative;
            width: 60px;
            height: 30px;
            background-color: #ccc;
            border-radius: 15px;
            cursor: pointer;
            transition: background-color 0.3s;
            border: none;
            outline: none;
        }

        .toggle-switch.active {
            background-color: #28a745;
        }

        .toggle-switch::before {
            content: '';
            position: absolute;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background-color: white;
            top: 2px;
            left: 2px;
            transition: transform 0.3s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .toggle-switch.active::before {
            transform: translateX(30px);
        }

        .status-text {
            font-weight: 600;
            margin-left: 10px;
        }

        .status-active {
            color: #28a745;
        }

        .status-inactive {
            color: #dc3545;
        }

        .empty-state {
            text-align: center;
            padding: 40px;
            color: #6c757d;
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.5;
        }

/* end of department css */
      /* flash message css */
        .flash-message {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
            color: #fff;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            opacity: 0;
            transform: translateY(20px);
            animation: slideUp 0.4s ease forwards;
            z-index: 9999;
        }
        .flash-success { background-color: #28a745; }
        .flash-error   { background-color: #dc3545; }
        .flash-warning { background-color: #ffc107; color: #222; }
        .flash-info    { background-color: #17a2b8; }

        @keyframes slideUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
      /* end of flash message css */
      /* sitch */
        .switch {
        position: relative;
        display: inline-block;
        width: 46px;
        height: 24px;
        }

        .switch input {
        opacity: 0;
        width: 0;
        height: 0;
        }

        .slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
        }

        .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
        }

        input:checked + .slider {
        background-color: #4caf50;
        }

        input:checked + .slider:before {
        transform: translateX(22px);
        }
      /* end of switch css */
        /* Permission Box Style */
            .permission-box {
                border: 1px solid #ddd;
                border-radius: 12px;
                padding: 12px 14px;
                transition: all 0.2s ease-in-out;
                background: #fff;
            }
            .permission-box:hover {
                border-color: #0d6efd;
                background: #f8faff;
                box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            }
            .permission-box .form-check-label {
                cursor: pointer;
                font-weight: 500;
            }
            /* Checkbox Size */
            .form-check-input {
                cursor: pointer;
            }
        /*end of Permission Box Style */
        