/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling with dark theme and crisp text */
body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Crisp text on Webkit browsers */
    -moz-osx-font-smoothing: grayscale; /* Crisp text on Firefox macOS */
    text-rendering: optimizeLegibility; /* Optimize text sharpness */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80% auto;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Container styling with 3D shadow */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 3px solid #c0c0c0;
    border-radius: 5px;
    background-color: #2a2a2a; /* Slight contrast for depth */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), /* Deep outer shadow */
                0 3px 6px rgba(0, 0, 0, 0.3), /* Mid-layer shadow */
                0 1px 3px rgba(0, 0, 0, 0.2); /* Inner shadow for 3D lift */
}

/* Employee page specific container */
.employee-page {
    background-color: #1a1a1a;
    color: #c0c0c0;
    text-align: center;
    padding: 20px;
}

.employee-header {
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.employee-header h1 {
    color: #c0c0c0;
    margin: 0;
    font-size: 24px;
}

.status-display {
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.status-display p {
    color: #c0c0c0;
    margin: 5px 0;
    font-size: 18px;
}

.time-controls {
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.time-controls button {
    background-color: #cc0000;
    color: #c0c0c0;
    border: 2px solid #c0c0c0;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.time-controls button:hover {
    background-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.hours-display {
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hours-display p {
    color: #c0c0c0;
    margin: 5px 0;
    font-size: 18px;
}

.weekly-records {
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.weekly-records table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.weekly-records th {
    background-color: #1a1a1a;
    color: #c0c0c0;
    padding: 10px;
    border: 1px solid #c0c0c0;
}

.weekly-records td {
    color: #c0c0c0;
    padding: 10px;
    border: 1px solid #c0c0c0;
}

.weekly-records tr:nth-child(even) {
    background-color: #1a1a1a;
}

.weekly-records tr:hover {
    background-color: #333333;
}

.text-center {
    text-align: center;
}

.external-time {
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.external-time form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.external-time input[type="number"],
.external-time input[type="text"] {
    background-color: #1a1a1a;
    color: #c0c0c0;
    border: 2px solid #c0c0c0;
    padding: 8px;
    font-size: 16px;
}

.external-time button {
    background-color: #cc0000;
    color: #c0c0c0;
    border: 2px solid #c0c0c0;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.external-time button:hover {
    background-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Responsive styles for employee portal */
@media (max-width: 768px) {
    .employee-page {
        padding: 10px;
    }

    .time-controls button {
        width: 100%;
        margin: 5px 0;
    }

    .weekly-records {
        overflow-x: auto;
    }

    .external-time form {
        padding: 0 10px;
    }
}

/* Header styling with 3D shadow */
header {
    text-align: center;
    padding: 10px 0;
    border-bottom: 3px solid #c0c0c0;
    background-color: #2a2a2a;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Logo styling with 3D shadow */
.logo {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Headings with crisp text */
h1, h2 {
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

/* All text elements with bold and shadow */
p, span, div, td, th, label, input, select, button {
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Strong elements with extra emphasis */
strong {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Button group styling */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px;
}

.button-group input[type="text"] {
    min-width: 150px;
    margin-bottom: 5px;
}

.button-group input[type="checkbox"] {
    margin: 0 5px;
}

.button-group label {
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
}

.button-group div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0;
}

.button-group button {
    margin: 0 5px;
    padding: 5px 10px;
}

table td {
    padding: 0;
}

table td .button-group {
    padding: 10px;
}

table td .button-group input[type="text"] {
    margin-bottom: 5px;
}

table td .button-group div {
    margin: 5px 0;
}

table td .button-group button {
    margin: 0 5px;
}

/* Input and button styling with 3D shadow */
input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
select,
button {
    padding: 10px;
    font-size: 16px;
    border: 3px solid #c0c0c0;
    border-radius: 5px;
    background-color: #333333; /* Darker base for contrast */
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), /* Outer shadow */
                0 2px 4px rgba(0, 0, 0, 0.3), /* Mid shadow */
                inset 0 1px 2px rgba(255, 255, 255, 0.1); /* Inner highlight for 3D */
    transition: transform 0.1s, box-shadow 0.1s;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Button specific styling */
button {
    background-color: #ff4444;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

button:hover {
    background-color: #cc3333;
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.3);
}

button:disabled {
    background-color: #666;
    cursor: not-allowed;
    box-shadow: none; /* No shadow when disabled */
}

/* Green button styling for status indication */
.green-button {
    background-color: #00cc00; /* Bright green */
    color: #ffffff; /* White text */
    border: 3px solid #c0c0c0; /* Match other buttons */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), /* Outer shadow */
                0 2px 4px rgba(0, 0, 0, 0.3), /* Mid shadow */
                inset 0 1px 2px rgba(255, 255, 255, 0.1); /* Inner highlight */
    font-weight: bold; /* Bold text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Text drop shadow */
}

.green-button:hover {
    background-color: #00aa00; /* Slightly darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Table styling with 3D shadow */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
}

table th, table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #444;
}

table th {
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #333;
}

table tr:hover {
    background-color: #444;
}

/* Specific styling for date and number inputs */
.date-input {
    width: 70px;
}

.number-input {
    width: 60px;
}

/* Home button styling with 3D shadow */
.home-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff4444;
    color: #ffffff;
    text-decoration: none;
    border: 3px solid #c0c0c0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5),
                0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 10px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.home-btn:hover {
    background-color: #cc3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 20px;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    .logo {
        width: 100px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    input[type="text"],
    input[type="date"],
    input[type="time"],
    input[type="number"],
    input[type="email"],
    select,
    button {
        width: 100%;
        padding: 20px;
        font-size: 20px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    .date-input,
    .number-input {
        width: 100%;
    }
}

/* Print styling */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
        -webkit-font-smoothing: auto; /* Reset for print */
        -moz-osx-font-smoothing: auto;
        text-rendering: auto;
    }

    .container, header, table {
        border: 1px solid #000000;
        box-shadow: none;
        background-color: #ffffff;
    }

    button, .button-group, .home-btn {
        display: none;
    }

    th, td {
        border: 1px solid #000000;
    }

    th {
        background-color: #ddd;
    }

    td {
        background-color: #fff;
    }
}

/* Admin specific styles */
.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.admin-section h2 {
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.admin-section table {
    margin-top: 10px;
}

.admin-section th {
    background-color: #444;
    color: #fff;
}

.admin-section td {
    padding: 12px;
    vertical-align: middle;
}

.admin-section .button-group {
    margin: 0;
    padding: 0;
}

.admin-section button {
    padding: 8px 15px;
    margin: 0 5px;
}

.admin-section .edit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
}

.admin-section .edit-btn:hover {
    background-color: #45a049;
}

.admin-section select {
    min-width: 200px;
    margin-right: 10px;
}

.admin-section input[type="date"] {
    min-width: 150px;
    margin-right: 10px;
}

/* Modal styling - Improved for better UX */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: #2a2a2a;
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #c0392b;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Improved report modal styling */
.report-modal {
    width: 90%;
    max-width: 1200px; 
    padding: 0;
    overflow: hidden;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #333;
    border-bottom: 2px solid #c0392b;
}

.report-header h2 {
    margin: 0;
    color: #fff;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.report-content-container {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

/* REMOVED - CONSOLIDATED INTO STANDARDIZED CLASSES ABOVE */

/* Better close button */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close:hover {
    color: #c0392b;
    transform: rotate(90deg);
}

/* Loading overlay for async operations */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #c0392b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved table styling for reports */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.report-table th {
    background-color: #c0392b;
    color: white;
    padding: 12px 10px;
    text-align: left;
    position: sticky;
    top: 0;
}

.report-table td {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.report-table tr.regular-record {
    background-color: #222;
}

.report-table tr.outside-record {
    background-color: #2c3e50;
}

.report-table tr:hover {
    background-color: #333;
}

.hours-cell {
    font-weight: bold;
    color: #e74c3c;
}

.reason-cell {
    max-width: 200px;
    word-wrap: break-word;
}

.record-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.regular-type {
    background-color: #27ae60;
    color: white;
}

.outside-type {
    background-color: #e74c3c;
    color: white;
}

/* Print styles for reports */
@media print {
    .report-modal {
        width: 100%;
        border: none;
        box-shadow: none;
    }
    
    .report-header, .report-actions, .close {
        display: none;
    }
    
    .report-content-container {
        padding: 0;
        overflow: visible;
        height: auto;
    }
    
    .report-table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .report-table th {
        background-color: #ddd !important;
        color: black !important;
    }
    
    .report-table tr.regular-record,
    .report-table tr.outside-record {
        background-color: transparent !important;
    }
}

/* Employee link styles */
.employee-link {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
    font-size: 1.1em;
}

.employee-link.status-active {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.employee-link.status-break {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.employee-link.status-inactive {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.employee-link:hover {
    text-decoration: underline;
}

/* Status text styling */
td:nth-child(2) {
    font-weight: bold;
    text-align: center;
}

/* Duration styling */
td:nth-child(3) {
    font-weight: bold;
    text-align: right;
    font-family: monospace;
}

/* Mode switch button */
.mode-switch-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.mode-switch-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.3);
}

.suspend-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.suspend-btn:hover {
    background-color: #cc0000;
}

.unsuspend-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.unsuspend-btn:hover {
    background-color: #45a049;
}

.clock-out-all-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.clock-out-all-btn:hover {
    background-color: #cc0000;
}

.external-time-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.external-time-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.external-time-form .form-group {
    margin-bottom: 15px;
}

.external-time-form label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
}

.external-time-form input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #333;
    color: #fff;
}

.external-time-form input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #333;
    color: #fff;
}

.blue-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.blue-button:hover {
    background-color: #0056b3;
}

.edit-time-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.edit-time-form .form-group {
    margin-bottom: 15px;
}

.edit-time-form label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
}

.edit-time-form input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #333;
    color: #fff;
}

.edit-time-form input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #333;
    color: #fff;
}

.break-entry {
    background-color: #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    border: 1px solid #444;
}

.break-entry h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.1em;
}

.edit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.edit-btn:hover {
    background-color: #0056b3;
}

/* Report Section Styles */
.report-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-form .form-group {
    margin-bottom: 20px;
}

.report-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.report-form select[multiple] {
    height: 150px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.report-form .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.report-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.report-form .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Report Modal Styles */
.report-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.report-actions .action-btn {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.report-actions .action-btn:hover {
    background: #0056b3;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.report-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.report-table tr:nth-child(even) {
    background: #f8f9fa;
}

.report-table tr:hover {
    background: #f2f2f2;
}

.employee-section {
    margin-bottom: 30px;
}

.employee-section h2 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #007bff;
}

/* Print Styles */
@media print {
    .report-content {
        box-shadow: none;
        padding: 0;
    }

    .report-actions {
        display: none;
    }

    .report-table {
        page-break-inside: auto;
    }

    .employee-section {
        page-break-inside: avoid;
    }
}

.report-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.employee-select-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.select-all-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.select-all-btn:hover {
    background: #45a049;
}

.employee-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border-radius: 4px;
}

.checkbox-label:hover {
    background: #f5f5f5;
}

.report-modal {
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.report-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.report-table th,
.report-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.report-table th {
    background: #f5f5f5;
}

.employee-section {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

@media print {
    .report-actions {
        display: none;
    }
    
    .modal-content {
        box-shadow: none;
    }
    
    .close {
        display: none;
    }
}

/* Email modal styling */
.full-width {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    margin: 5px 0;
}

.form-group small {
    display: block;
    color: #bbb;
    font-size: 12px;
    margin-top: 3px;
}

.cancel-btn {
    padding: 8px 15px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background-color: #888;
}

/* Success and error messages */
.success-message, .error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Settings form styling */
.settings-form {
    max-width: 800px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form small {
    display: block;
    color: #bbb;
    font-size: 12px;
    margin-top: 3px;
}

.test-email-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Login page specific styles */
.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000;
    border: 2px solid #c0c0c0;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-form label {
    color: #c0c0c0;
    font-size: 16px;
}

.login-form input[type="text"] {
    background-color: #1a1a1a;
    color: #c0c0c0;
    border: 2px solid #c0c0c0;
    padding: 10px;
    font-size: 16px;
    width: 100%;
}

.login-form button {
    background-color: #cc0000;
    color: #c0c0c0;
    border: 2px solid #c0c0c0;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.login-form button:hover {
    background-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.error-message, .success-message {
    background-color: #1a1a1a;
    border: 2px solid #c0c0c0;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #c0c0c0;
}

/* ========================================
   RESPONSIVE DASHBOARD LAYOUT
   ======================================== */

/* Dashboard Grid - Responsive Layout */
.dashboard-grid {
    display: grid;
    gap: 20px;
    align-items: start;
    width: 100%;
}

/* Desktop: 3 columns side by side */
@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-grid .dashboard-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile: Single column */
@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Card Styling */
.dashboard-card {
    background-color: #2a2a2a;
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Card Header */
.card-header {
    background-color: #333;
    padding: 15px 20px;
    border-bottom: 2px solid #c0c0c0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card-title {
    color: #c0c0c0;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Card Content */
.card-content {
    padding: 20px;
}

/* Responsive adjustments for card content */
@media (max-width: 767px) {
    .card-header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-title {
        font-size: 1.1em;
    }
    
    .card-content {
        padding: 15px;
    }
}

/* Time Management Tools responsive layout */
.tools-grid {
    display: grid;
    gap: 15px;
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
}

@media (max-width: 767px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-item {
    padding: 12px;
    background-color: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
    text-align: center;
}

.tool-item h5 {
    color: #3498db;
    margin-bottom: 8px;
    font-size: 1em;
}

.tool-item p {
    font-size: 0.85em;
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.4;
}

.tool-item .action-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9em;
    text-decoration: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.tool-item .action-btn:hover {
    background-color: #2980b9;
}

/* Form elements within cards */
.card-content form {
    margin-bottom: 15px;
}

.card-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #c0c0c0;
}

.card-content input,
.card-content select,
.card-content textarea {
    width: 100%;
    padding: 8px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.card-content input:focus,
.card-content select:focus,
.card-content textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Button styling within cards */
.card-content .action-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    margin: 2px;
}

.card-content .action-button:hover {
    background-color: #2980b9;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background-color: #2ecc71;
}

.status-break {
    background-color: #f1c40f;
}

.status-inactive {
    background-color: #95a5a6;
}

/* Time display styling */
.time-display {
    font-family: monospace;
    font-size: 0.9em;
    color: #c0c0c0;
}

/* Lists within cards */
.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-content li {
    margin-bottom: 8px;
    padding: 8px;
    background-color: #2a2a2a;
    border-radius: 4px;
    border: 1px solid #444;
}

/* Section headers within cards */
.section-header {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    font-size: 1.1em;
    font-weight: bold;
}

/* Form grid layouts */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Status message styling */
.status-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
}

/* Employee list styling */
.employee-list {
    list-style: none;
    padding: 0;
}

.employee-list li {
    margin-bottom: 8px;
}

.employee-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    background-color: #2a2a2a;
    border: 1px solid #c0c0c0;
}

.employee-link:hover {
    background-color: #333;
}

/* ========================================
   STANDARDIZED CSS CLASSES
   ======================================== */

/* STANDARDIZED ACTION BUTTON - Primary Button Style */
.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* STANDARDIZED ACTION BUTTON VARIANTS */
.action-btn.success {
    background-color: #2ecc71;
}

.action-btn.success:hover {
    background-color: #27ae60;
}

.action-btn.danger {
    background-color: #e74c3c;
}

.action-btn.danger:hover {
    background-color: #c0392b;
}

.action-btn.warning {
    background-color: #f39c12;
}

.action-btn.warning:hover {
    background-color: #e67e22;
}

/* STANDARDIZED FORM GROUP */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #c0c0c0;
    font-weight: bold;
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 0.9em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group small {
    display: block;
    color: #bbb;
    font-size: 0.8em;
    margin-top: 3px;
}

/* STANDARDIZED ACTION BUTTON (Secondary Button Style) */
.action-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin: 2px;
}

.action-button:hover {
    background-color: #2980b9;
}

/* STANDARDIZED ACTION BUTTON VARIANTS */
.action-button.success {
    background-color: #2ecc71;
}

.action-button.success:hover {
    background-color: #27ae60;
}

.action-button.danger {
    background-color: #e74c3c;
}

.action-button.danger:hover {
    background-color: #c0392b;
}

.action-button.warning {
    background-color: #f1c40f;
}

.action-button.warning:hover {
    background-color: #f39c12;
}

/* STANDARDIZED BUTTON GROUP */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px;
}

.button-group input[type="text"] {
    min-width: 150px;
    margin-bottom: 5px;
}

.button-group input[type="checkbox"] {
    margin: 0 5px;
}

.button-group label {
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
}

.button-group div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0;
}

.button-group button {
    margin: 2px;
}

/* Responsive text sizing */
@media (max-width: 767px) {
    .card-content input,
    .card-content select,
    .card-content textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}