:root {
    --primary-color: #c4282c;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #f1f5f9;
    --sidebar-width: 250px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: #1e293b;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: #1d1a1a;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.logo img {
    width: 200px;
}
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #fbfcff;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: #ed1c2f;
}

.nav-item.active {
    background-color: #c4282c;
    color: white;
}

.nav-subitem.active {
    background-color: #c4282c;
    color: white;
}


/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    background: #e8e8e8;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* background-color: #f1f5f9; */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    width: 300px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notifications {
    position: relative;
    background: #c5c7c7;
    padding: 7px 13px;
    border-radius: 100%;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stats Grid Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-icon.box {
    background-color: var(--primary-color);
}

.stat-icon.shopping-cart {
    background-color: var(--success-color);
}

.stat-icon.users {
    background-color: var(--warning-color);
}

.stat-icon.dollar-sign {
    background-color: var(--danger-color);
}

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.875rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Chart Container Styles */
.chart-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Dashboard Grid Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.dashboard-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Orders Table Styles */
.orders-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-weight: 600;
    color: var(--secondary-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.status-badge.completed {
    background-color: #dcfce7;
    color: var(--success-color);
}

.status-badge.pending {
    background-color: #fef3c7;
    color: var(--warning-color);
}

.status-badge.processing {
    background-color: #dbeafe;
    color: var(--primary-color);
}

/* Top Products Styles */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-item img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.product-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.product-info p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.product-sales {
    margin-left: auto;
    text-align: right;
}

.product-sales span {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.progress-bar {
    width: 100px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Products Page Styles */
.page-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Push all items to the left */
    gap: 10px; /* Space between items */
    margin-bottom: 10px;
}
.employee-h2{
    margin-right: 1272px!important;
}
.page-header h2 {
    margin-right: 1100px; /* Add little space between title and buttons */
    font-size: 1.5rem;
    color: #333;
}
.page-header .add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    /* transition: background 0.2s; */
}

.add-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}
.add-btn:hover{
    background-color: var(--danger-color)!important;
}
.add-btnn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.add-btnn:hover{
    background-color: var(--danger-color)!important;
}

.bg-white{
    background-color: white;
    padding: 10px;
}
.cancel-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cancel-btn:hover{
    background-color: #90a2bb!important;
    color: white;
}
.swal2-btn{
    margin: 0 6px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-details {
    padding: 1rem;
}

.product-details h3 {
    margin-bottom: 0.5rem;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stock {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.edit-btn {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.delete-btn {
    background-color: #fee2e2;
    color: var(--danger-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.modal-actions button[type="button"] {
    background-color: #e2e8f0;
    border: none;
}

.modal-actions button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 1rem;
    }

    .logo span,
    .nav-item span {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        width: 100%;
    }
}

.hidden {
    display: none;
}

/* Submenu Styles */
.nav-group {
    position: relative;
}

.nav-submenu {
    display: none;
    padding-left: 1.5rem;
    /* background-color: #f8fafc; */
    border-left: 2px solid #e42c40;
    margin: 0.5rem 0;
}

.nav-group.active .nav-submenu {
    display: block;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #ffffff;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-subitem:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Filter Bar Styles */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--secondary-color);
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
}

.date-input {
    width: 150px;
}

/* Table Styles */
.table-container {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    font-size: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Categories Grid Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card h3 {
    margin: 0;
    color: var(--primary-color);
}

.category-stats {
    display: flex;
    gap: 1rem;
}

.category-stat {
    flex: 1;
    text-align: center;
}

.category-stat span {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.category-stat strong {
    display: block;
    font-size: 1.25rem;
    color: #1e293b;
}

/* Employees Grid Styles */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.employee-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
    text-align: center;
    margin: 0 auto;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.3s ease;
    width: 377px !important;
    margin-bottom: 30px;
}

.employee-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.employee-avatar {
    flex-shrink: 0;
    padding: 20px 0;
}

.employee-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.employee-info {
    flex: 1;
    min-width: 0;
}

.employee-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.position {
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: #c9e7f8;
    border-radius: 10px;
    padding: 20px 10px;
}

.details span {
    display: block;
    color: #000;
    font-size: 15px;
}

.employee-status {
    flex-shrink: 0;
    text-align: right;
    padding-left: 1rem;
}

.employee-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    padding-left: 1rem;
    justify-content: center;
    padding: 30px 0 0 0;
}

.status-badge.active {
    background-color: #dcfce7;
    color: var(--success-color);
}

.status-badge.leave {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.status-badge.inactive {
    background-color: #c4282c;
    color: #ffffff;
}

/* Enhanced Modal Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.image-upload-container {
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.image-upload {
    text-align: center;
    padding: 2rem;
    cursor: pointer;
}

.image-upload i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-image {
    position: relative;
    width: 100px;
    height: 100px;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.preview-image .remove-image {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Order Items Table Styles */
.order-items {
    margin: 1.5rem 0;
}

.order-items h3 {
    margin-bottom: 1rem;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.order-items-table th,
.order-items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.order-summary {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row.total {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 600;
}

/* Button Styles */
.cancel-btn {
    background-color: #e2e8f0;
    color: var(--secondary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.edit-btn {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.delete-btn {
    background-color: #fee2e2;
    color: var(--danger-color);
}

/* Bootstrap-like Utility Classes for Attendance Dashboard */
.d-flex {
    display: flex;
}

.gap-3 {
    gap: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-success {
    color: #fff;
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1c7430;
}

.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-dark {
    color: #fff;
    background-color: #212529;
}

.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #32383e;
}

.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-dark th {
    color: #fff;
    background-color: #343a40;
    border-color: #454d55;
}

/* Settings Page Styles */
.settings-container {
    display: flex;
    height: calc(100vh - 150px);
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.settings-sidebar {
    width: 250px;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.settings-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.settings-nav li:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

.settings-nav li.active {
    background-color: var(--primary-color);
    color: white;
}

.settings-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.setting-section {
    display: none;
}

.setting-section.active {
    display: block;
}

.settings-form {
    max-width: 600px;
}

.notification-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
}
.mt-3{
    margin-top: 30px;
}
.mb-3{
    margin-bottom: 30px;
}

.notification-group h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.notification-group label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.notification-group label:hover {
    background-color: #e2e8f0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Image Upload Styles for Settings */
.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-area p {
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.upload-area span {
    font-size: 0.875rem;
    color: #94a3b8;
}

.image-preview {
    margin-top: 1rem;
}

.preview-image {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.preview-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.preview-image .remove-image {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: var(--danger-color);
}

/* Profile Settings Styles */
.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 2fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: #ffff;
    margin: 20px 0 20px 0;
}

.profile-info-item {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.profile-info-item h3 {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.profile-info-item p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.edit-profile-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.edit-profile-btn:hover {
    background-color: #a82327;
}

.profile-edit .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-edit .form-group {
    margin-bottom: 1rem;
}

.profile-edit .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.profile-edit .form-group input,
.profile-edit .form-group select,
.profile-edit .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.profile-edit .form-group input:focus,
.profile-edit .form-group select:focus,
.profile-edit .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 40, 44, 0.1);
}

.profile-edit .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.profile-edit .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.profile-edit .modal-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-edit .cancel-btn {
    background-color: #e2e8f0;
    color: var(--secondary-color);
    border: none;
}

.profile-edit .cancel-btn:hover {
    background-color: #cbd5e1;
    color: #1e293b;
}

.profile-edit .save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.profile-edit .save-btn:hover {
    background-color: #a82327;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .settings-container {
        flex-direction: column;
        height: auto;
    }

    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
    }

    .settings-nav li {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .profile-edit .form-grid {
        grid-template-columns: 1fr;
    }
}
#addEmployeeForm .form-group select {
    padding: 10px;
    width: 100%;
    border: 1px solid #e2e8f0;
}
.form-group select{
    padding: 10px;
    width: 100%;
    border: 1px solid #e2e8f0;
}
.details ul {
    display: flex;
    gap: 20px;
    padding: 0px 8px 10px 0;
    border-bottom: 1px solid;
    height: 70px;
    justify-content: space-between;
    margin: 0;
}

.details ul li {
    list-style: none;
    text-align: left;
}

.details ul li h5 {
    padding: 5px 0;
    font-size: 16px;
    color: #273b91;
    font-weight: 600;
    margin: 0;
}
.employee-email {
    text-align: left;
    /* padding: 10px 10px 0 0; */
}

.employee-email span {
    padding: 3px 0;
    color: #000;
}
.emp-data h2 {
    padding: 20px 0;
    font-size: 35px;
}

.emp-data h5 {
    padding: 20px 0;
    font-size: 30px;
}
.dashboard-stats {
    display: flex;
    gap: 20px;
    padding: 0px 0 50px 0;
}

.stat-card i {
    color: #f74757;
    border-radius: 100%;
}
.stat-card span {
    height: 44px;
    width: 45px;
    /* background: #86c1ea; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 1px solid #f74757;
}
.stat-info p {
    font-size: 24px;
    padding: 10px 0;
    margin: 0;
}

.stat-info h3 {
    font-size: 15px;
    margin: 0;
}
.emp-data h3 {
    padding: 0 0px 20px 0;
    font-size: 30px;
}
#dashboard-page h2 {
    font-size: 40px;
    color: #273b91;
}
.profile-info ul {
    display: flex;
    background: #f8f9fa!important;
    padding: 20px;
    gap: 20px;
    align-items: center;
    margin: 20px;
}
ul {}

.profile-info ul li img {
    width: 120px;
}

.profile-info ul li {
    list-style: none;
}

.profile-info ul li h3 {
    padding: 10px 0;
}

.profile-info ul li p {
    padding: 0px 0 20px;
}

.profile-info ul li a {
    background: #e72d42;
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 5px;
}
.profile-details div {
    padding: 15px 0;
}

.profile-details div span {
    border: 1px solid #c4c4c4;
    padding: 10px;
    width: 280px;
    display: inline-block;
    border-radius: 5px;
}

.profile-details {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
}
.profile-info h2 {
    padding: 20px 0 0 20px;
    font-size: 20px;
}
nav.sidebar h2 {
    color: #fff;
    padding: 20px 0;
    font-size: 19px;
}
.leave-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.leave-section h5 {
    font-size: 34px;
    padding: 0 0 30px 0;
}
table.data-table tr th {background: #1b6395;color: #fff;}
.Register-sec {
    background: #000;
}

#registerForm label {
    color: #fff;
}

.Register-sec h3 {
    color: #fff;
}
.notifications span {
    border-radius: 100%;
}

/* Clock Css */
.clock {
	min-height: 14em;
	min-width: 14em;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	background-image: url("https://imvpn22.github.io/analog-clock/clock.png");
	background-position: center center;
	background-size: cover;
	border-radius: 50%;
	border: 4px solid #8698e3;
	box-shadow: 0 -15px 15px rgba(255, 255, 255, 0.05),
		inset 0 -15px 15px rgba(255, 255, 255, 0.05), 0 15px 15px rgba(0, 0, 0, 0.3),
		inset 0 15px 15px rgba(0, 0, 0, 0.3);
	transition: all ease 0.2s;
	width: 40px;
	margin: 0 0 30px 0;
}
.clock:before {
	content: "";
	height: 1.75rem;
	width: 1.75rem;
	background-color: #ea2338;
	border: 2px solid var(--main-bg-color);
	position: absolute;
	border-radius: 50%;
	z-index: 1000;
	transition: all ease 0.2s;
}
.hour,
.min,
.sec {
	position: absolute;
	display: flex;
	justify-content: center;
	border-radius: 50%;
}
.hour {
	height: 10em;
	width: 10em;
}
.hour:before {
	content: "";
	position: absolute;
	height: 50%;
	width: 6px;
	background-color: #000;
	border-radius: 6px;
}
.min {
	height: 12em;
	width: 12em;
}
.min:before {
	content: "";
	height: 50%;
	width: 4px;
	background-color: #000;
	border-radius: 4px;
}
.sec {
	height: 13em;
	width: 13em;
}
.sec:before {
	content: "";
	height: 60%;
	width: 2px;
	background-color: #f00;
	border-radius: 2px;
}
.check {
    padding: 40px 30px 20px 30px;
    background: #dadada;
    width: 300px;
    border-radius: 10px;
}

.check .d-flex {
    justify-content: center;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.profile-dropdown .profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.profile-dropdown .profile:hover {
    background-color: #f1f5f9;
}

.profile-dropdown .profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown .profile span {
    font-weight: 500;
    color: #1e293b;
}

.profile-dropdown .profile i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.profile-dropdown .profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.profile-dropdown .profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1e293b;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.profile-dropdown .profile-menu a:last-child {
    border-bottom: none;
}

.profile-dropdown .profile-menu a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.profile-dropdown .profile-menu a i {
    width: 16px;
    text-align: center;
}
.auth-btn{
    background-color: #c4282c;
    color: white;
}
.auth-btn:hover{
    color: #c4282c;
    background-color: white;
}
.color-white{
    color: white;
}
.theme-color{
   color: var(--primary-color);
}
.theme-color:hover{
    color: #eb282e;
}
.bg-custom{
    background-color: #c4282c!important;
}
.back-btn {
    padding: 0.75rem 1.5rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.back{
    position:absolute;
    margin-top: 10px;
}
.cont{
    justify-content: center;
    display: flex;
}
.ssm{
    width: 50%;
}
