/* Global Styles */
:root {
    /* Original colors */
    /*--primary-color: #3498db; /* Blue */
    /*--primary-dark: #2980b9; /* Darker Blue */
    /*--primary-light: #e3f2fd; /* Light Blue */
    
    /* New orange color scheme */
    --primary-color: #e67e22; /* Orange */
    --primary-dark: #d35400; /* Darker Orange */
    --primary-light: #fdebd0; /* Light Orange */
    
    /* Other colors remain the same */
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --danger-dark: #c0392b;
    --warning-color: #f39c12;
    --warning-dark: #e67e22;
    --light-color: #ecf0f1;
    --light-gray: #e9ecef;
    --dark-gray: #6c757d;
    --darker-gray: #343a40;
    --darkest-gray: #212529;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--darkest-gray);
    line-height: 1.6;
}

.container {
    width: 100%;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Button Styles */
button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 600;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

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

.secondary-btn:hover {
    background-color: var(--secondary-dark);
}

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

.danger-btn:hover {
    background-color: var(--danger-dark);
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--darkest-gray);
    border: 1px solid var(--light-gray);
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.google-btn:hover {
    background-color: #f8f8f8;
}

/* Authentication Styles */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-color);
}

.auth-container {
    width: 400px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.auth-form h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--darkest-gray);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--light-gray);
}

.divider span {
    padding: 0 10px;
    color: var(--dark-gray);
    font-size: 14px;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
#dashboard-section {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--darkest-gray);
    color: var(--white);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 30px;
}

.sidebar-header i {
    font-size: 24px;
    margin-right: 10px;
    color: var(--primary-color);
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background-color: var(--primary-color);
}

.menu-item i {
    margin-right: 15px;
    font-size: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer button {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
}

.sidebar-footer button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer button i {
    margin-right: 10px;
}

.content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 4px;
    padding: 8px 15px;
    width: 300px;
}

.search-bar i {
    color: var(--dark-gray);
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background-color: transparent;
    flex: 1;
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
}

.notification-bell i {
    font-size: 20px;
    color: var(--dark-gray);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Dashboard Sections */
.dashboard-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: var(--darkest-gray);
}

/* Overview Section */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.stat-card:nth-child(2) .stat-card-icon {
    background-color: rgba(46, 204, 113, 0.1);
}

.stat-card:nth-child(2) .stat-card-icon i {
    color: var(--secondary-color);
}

.stat-card:nth-child(3) {
    border-left-color: var(--warning-color);
}

.stat-card:nth-child(3) .stat-card-icon {
    background-color: rgba(243, 156, 18, 0.1);
}

.stat-card:nth-child(3) .stat-card-icon i {
    color: var(--warning-color);
}

.stat-card:nth-child(4) {
    border-left-color: var(--danger-color);
}

.stat-card:nth-child(4) .stat-card-icon {
    background-color: rgba(231, 76, 60, 0.1);
}

.stat-card:nth-child(4) .stat-card-icon i {
    color: var(--danger-color);
}

.stat-card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.stat-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.stat-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--darkest-gray);
}

.overview-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 300px;
    overflow: hidden;
}

.chart-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--darkest-gray);
}

.chart-container canvas {
    max-height: 240px;
    border: 1px solid var(--light-gray);
}

.recent-activities {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.recent-activities h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--darkest-gray);
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-icon i {
    font-size: 16px;
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background-color: var(--light-color);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-color);
}

.data-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions button {
    padding: 5px 10px;
    font-size: 14px;
}

.edit-btn {
    background-color: var(--warning-color);
    color: var(--white);
}

.edit-btn:hover {
    background-color: var(--warning-dark);
}

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

.delete-btn:hover {
    background-color: var(--danger-dark);
}

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

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
}

/* Address Form Specific Overrides */
.modal-content:has(.edit-address-form) {
    padding: 0;
    overflow: visible;
}

.modal-content:has(.edit-address-form) .modal-title {
    padding: 20px 25px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Fix any scrolling issues */
.edit-address-form {
    overflow-x: hidden;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

.close-btn:hover {
    color: var(--danger-color);
}

#modal-body {
    padding: 20px;
}

.form-header {
    margin-bottom: 20px;
    text-align: center;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Add styles for forgot password link */
.forgot-password {
    text-align: right;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Password Reset Form */
.password-reset-form {
    padding: 20px 0;
}

.password-reset-form h2 {
    color: var(--darkest-gray);
    margin-bottom: 15px;
    text-align: center;
}

.password-reset-form p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    text-align: center;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }
    
    .sidebar-header h2,
    .menu-item span,
    .sidebar-footer button span {
        display: none;
    }
    
    .sidebar-header i {
        margin-right: 0;
    }
    
    .menu-item {
        justify-content: center;
        padding: 15px;
    }
    
    .menu-item i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .content {
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .overview-charts {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        width: 90%;
    }
}

/* Settings Section Styles */
.settings-container {
    display: grid;
    grid-gap: 20px;
    margin-top: 20px;
}

.settings-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.settings-card h3 {
    color: var(--darkest-gray);
    margin-bottom: 10px;
}

.settings-card p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.update-progress {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 8px;
}

.progress-bar {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    animation: progress-animation 2s infinite linear;
}

@keyframes progress-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

#update-status {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 10px;
}

/* Password input styling */
.password-input-container {
    position: relative;
    width: 100%;
}

.password-input-container input {
    width: 100%;
    padding-right: 40px; /* Space for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dark-gray);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle i {
    font-size: 1rem;
}

/* Working Hours Modern Styling */
.weekday-row {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.weekday-row:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.weekday-name {
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--dark);
}

.day-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.weekday-status {
    flex: 1;
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.status-text {
    font-weight: 500;
}

.weekday-times {
    flex: 2;
}

.time-input-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.time-input-wrapper {
    position: relative;
    margin: 0 10px;
}

.time-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.time-input {
    padding: 8px 8px 8px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.time-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
    outline: none;
}

.time-separator {
    font-weight: 500;
    color: var(--gray);
}

/* Time Off Table Styling */
.time-off-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.data-table th {
    background-color: #f5f7f9;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid #e0e4e8;
}

.data-table th i {
    margin-right: 5px;
    color: var(--primary-color);
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e4e8;
    color: var(--gray-dark);
}

.data-table td:nth-child(4), /* Departure Time */
.data-table td:nth-child(5), /* Arrival Time */
.data-table td:nth-child(6) { /* Waiting Time */
    font-weight: 500;
}

.data-table td:nth-child(4) { /* Departure Time */
    color: #0066cc;
}

.data-table td:nth-child(5) { /* Arrival Time */
    color: #00994c;
}

.data-table td:nth-child(6) { /* Waiting Time */
    color: #cc6600;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.loading-row {
    text-align: center;
    padding: 40px 0 !important;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-state i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Time Off Form Styling */
.add-time-off-form {
    max-width: 600px;
    margin: 0 auto;
}

.add-time-off-form .form-group {
    margin-bottom: 20px;
}

.add-time-off-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.add-time-off-form input[type="text"],
.add-time-off-form input[type="date"],
.add-time-off-form input[type="time"],
.add-time-off-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-time-off-form input:focus,
.add-time-off-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.mr-2 {
    margin-right: 5px;
}

/* End of Working Hours Modern Styling */

/* Time Format Styling */
.time-with-format {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.time-format {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    pointer-events: none;
    user-select: none;
}

.time-with-format input[type="time"] {
    padding-right: 65px;
    padding-left: 12px;
    width: 100%;
}

.time-icon {
    position: absolute;
    right: 10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
    z-index: 1;
}

/* Update cancel button styling */
.cancel-modal-btn {
    background-color: var(--white);
    color: var(--danger-color);
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-modal-btn:hover {
    background-color: var(--danger-dark);
}

/* Fix for time input to display AM/PM format */
input[type="time"]::-webkit-calendar-picker-indicator {
    margin-right: 30px;
}

/* Hide the clear button on time inputs in Edge */
input[type="time"]::-ms-clear {
    display: none;
}

/* Address Form Map Styling */
.map-section {
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.address-map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.location-btn {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-btn i {
  margin-right: 8px;
}

.location-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.coordinates-display {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 14px;
}

.has-coordinates {
  color: var(--success-color);
  font-weight: 500;
}

.no-coordinates {
  color: var(--danger-color);
  font-weight: 500;
}

.form-section-subtext {
  color: var(--gray);
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 15px;
}

/* Time picker styling */
.time-input-container {
  position: relative;
  width: 100%;
}

.time-input {
  width: 100%;
  padding: 10px 12px;
  padding-right: 40px; /* Space for the icon */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.time-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  outline: none;
}

.time-picker {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  margin-top: 5px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.time-picker.active {
  display: flex;
}

.time-picker select {
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 14px;
}

.hour-select, .minute-select {
  width: 60px;
}

.time-picker span {
  font-weight: bold;
  padding: 0 5px;
}

.set-time-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 5px;
  transition: all 0.2s ease;
}

.set-time-btn:hover {
  background-color: var(--primary-dark);
}

.valid-input {
  border-color: #28a745 !important;
}

.invalid-input {
  border-color: #dc3545 !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    gap: 15px;
}

.form-group.half {
    flex: 1;
    min-width: 200px;
}

.time-picker {
    width: 100%;
    max-width: 350px;
}

/* Wide form styling */
.wide-form {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

/* New Address Dialog Styles */
.new-address-form {
  width: 100%;
  max-width: 800px;
}

.address-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.address-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--dark-gray);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.address-tab:hover {
  color: var(--primary-color);
}

.address-tab.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.address-tab-content {
  display: none;
  padding: 20px 0;
}

.address-tab-content.active {
  display: block;
}

.search-input-wrapper {
  display: flex;
  position: relative;
}

.search-input-wrapper input {
  flex: 1;
  padding-right: 40px;
}

.search-input-wrapper .icon-btn {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  color: var(--primary-color);
  height: 100%;
  padding: 0 12px;
}

.search-input-wrapper .icon-btn:hover {
  color: var(--primary-dark);
}

.address-map-fullsize {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.map-controls-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.coordinates-display {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  background-color: var(--light-color);
  text-align: center;
  font-size: 14px;
}

/* Responsive styles for the new address form */
@media (max-width: 768px) {
  .new-address-form {
    width: 100%;
  }
  
  .address-tabs {
    flex-direction: column;
  }
  
  .address-tab {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-group {
    width: 100%;
    margin-right: 0;
  }
  
  .address-map-fullsize {
    height: 250px;
  }
}

/* Enhanced Time Off Styles */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-upcoming {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.status-past {
  background-color: rgba(149, 165, 166, 0.1);
  color: var(--dark-gray);
}

.past-record {
  opacity: 0.7;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.actions-cell {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.form-section-heading {
  margin: 20px 0 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--light-gray);
}

.form-section-heading h4 {
  font-size: 16px;
  color: var(--darker-gray);
  margin-bottom: 5px;
}

/* Time input validation styling */
input.valid-input {
  border-color: var(--secondary-color) !important;
}

input.invalid-input {
  border-color: var(--danger-color) !important;
}

/* Improved error message styling for index creation */
.error-message {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 8px;
  color: var(--danger-color);
  margin: 15px 0;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.error-message i {
  font-size: 24px;
  margin-top: 3px;
}

.error-message p {
  margin: 5px 0;
  color: var(--darkest-gray);
}

.error-message p strong {
  font-weight: 600;
  color: var(--danger-color);
}

.error-message a.primary-btn {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  width: auto;
  padding: 8px 16px;
}

/* Fallback records styling */
.fallback-records {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--light-gray);
}

.fallback-records h4 {
  color: var(--darker-gray);
  margin-bottom: 10px;
}

/* Loading state enhancement */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px;
  color: var(--dark-gray);
}

.loading-state i {
  font-size: 24px;
  color: var(--primary-color);
}

/* Override any direct blue color usage */
.chart-container canvas {
  border: 1px solid var(--light-gray);
}

/* Change notification badge color */
.notification-badge {
  background-color: var(--danger) !important; /* Keep the badge red for visibility */
}

/* Override chart background colors */
.chart-area {
  background-color: rgba(230, 126, 34, 0.2) !important; /* Orange with opacity */
}

/* Change notification unread background */
.notification-item.unread {
  background-color: rgba(230, 126, 34, 0.1) !important;
}

/* Change notification icon background */
.notification-icon {
  background-color: var(--primary-color) !important;
}

/* Button hover states */
.primary-btn:hover {
  background-color: var(--primary-dark) !important;
}

/* Any blue links */
a {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
}

/* Chart colors - ensuring they override */
[class*="chart"] [style*="#3498db"],
[class*="chart"] [style*="rgb(52, 152, 219)"] {
  color: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Override any inline styles */
[style*="color: #3498db"],
[style*="color:#3498db"],
[style*="color:rgb(52, 152, 219)"],
[style*="color: rgb(52, 152, 219)"] {
  color: var(--primary-color) !important;
}

/* Dashboard active menu item */
.menu-item.active {
  background-color: var(--primary-color) !important;
}

.menu-item:hover:not(.active) {
  background-color: var(--primary-light) !important;
} 