/* Timesheet Specific Styles */

.timesheet-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.timesheet-header {
    text-align: center;
    margin-bottom: 30px;
}

.timesheet-header h1 {
    font-size: 2.5rem;
    color: #1a2c5b;
    margin-bottom: 5px;
}

.timesheet-header p {
    font-size: 1.1rem;
    color: #666;
}

.timesheet-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Employee Info Row */
.employee-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.info-field {
    display: flex;
    flex-direction: column;
}

.info-field label {
    font-weight: 600;
    color: #1a2c5b;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-field input,
.info-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.info-field input:focus,
.info-field select:focus {
    outline: none;
    border-color: #1a2c5b;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.timesheet-table thead {
    background: linear-gradient(135deg, #1a2c5b 0%, #2d4a8a 100%);
    color: white;
}

.timesheet-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.timesheet-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.timesheet-table tbody tr:hover {
    background: #f8f9fa;
}

.timesheet-table td {
    padding: 12px 10px;
}

.timesheet-table input[type="date"],
.timesheet-table input[type="text"],
.timesheet-table input[type="number"],
.timesheet-table select,
.timesheet-table textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.timesheet-table input:focus,
.timesheet-table select:focus,
.timesheet-table textarea:focus {
    outline: none;
    border-color: #1a2c5b;
}

.timesheet-table textarea {
    resize: vertical;
    min-height: 50px;
}

.timesheet-table tfoot {
    background: #f8f9fa;
    font-weight: bold;
}

.timesheet-table tfoot td {
    padding: 15px 10px;
    border-top: 2px solid #1a2c5b;
}

.total-row {
    background: #e7f3ff;
}

.total-row strong {
    color: #1a2c5b;
}

/* Column Widths */
.timesheet-table th:nth-child(1),
.timesheet-table td:nth-child(1) {
    width: 130px;
}

.timesheet-table th:nth-child(2),
.timesheet-table td:nth-child(2) {
    width: 200px;
}

.timesheet-table th:nth-child(3),
.timesheet-table td:nth-child(3) {
    width: 180px;
}

.timesheet-table th:nth-child(4),
.timesheet-table td:nth-child(4) {
    width: 100px;
}

.timesheet-table th:nth-child(5),
.timesheet-table td:nth-child(5) {
    min-width: 250px;
}

.timesheet-table th:nth-child(6),
.timesheet-table td:nth-child(6) {
    width: 80px;
    text-align: center;
}

/* Remove Button in Table */
.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #c82333;
}

/* Add Row Button */
.btn-add-row {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.btn-add-row:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Notes Section */
.notes-section {
    margin-bottom: 25px;
}

.notes-section label {
    display: block;
    font-weight: 600;
    color: #1a2c5b;
    margin-bottom: 8px;
    font-size: 1rem;
}

.notes-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.notes-section textarea:focus {
    outline: none;
    border-color: #1a2c5b;
}

.employee-info h2,
.time-entries h2,
.timesheet-summary h2,
.additional-notes h2 {
    font-size: 1.5rem;
    color: #1a2c5b;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a2c5b;
}

/* Time Entries */
.entries-container {
    margin-bottom: 20px;
}

.time-entry {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.time-entry:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.entry-header h3 {
    font-size: 1.2rem;
    color: #1a2c5b;
    margin: 0;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-remove:hover {
    background: #c82333;
}

.btn-add-entry {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-add-entry:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.summary-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

/* Additional Notes */
#additionalNotes {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

#additionalNotes:focus {
    outline: none;
    border-color: #1a2c5b;
}

/* Action Buttons */
.timesheet-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1a2c5b 0%, #2d4a8a 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 44, 91, 0.3);
}

.btn-secondary {
    background: white;
    color: #1a2c5b;
    border: 2px solid #1a2c5b;
}

.btn-secondary:hover {
    background: #1a2c5b;
    color: white;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .employee-info-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timesheet-section {
        padding: 80px 0 40px;
    }

    .timesheet-container {
        padding: 15px;
    }

    .employee-info-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .table-container {
        overflow-x: scroll;
    }

    .timesheet-table {
        font-size: 0.85rem;
    }

    .timesheet-table th,
    .timesheet-table td {
        padding: 8px 5px;
    }

    .timesheet-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .timesheet-header h1 {
        font-size: 2rem;
    }
}

/* Active Navigation */
nav a.active {
    color: #d4af37;
    font-weight: 600;
}
