/* Custom Timesheet Modal Styles */
.timesheet-modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

.timesheet-repeater .time-entry-row {
    border-left: 4px solid #36c6d3;
    transition: all 0.3s ease;
}

.timesheet-repeater .time-entry-row:hover {
    border-left-color: #2ab4c1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timesheet-repeater .elapsed-time {
    font-weight: bold;
    color: #2ab4c1;
    font-size: 14px;
    padding: 8px 0;
}

.timesheet-repeater .form-group {
    margin-bottom: 10px;
}

.timesheet-repeater .panel-body {
    padding: 15px;
}

.timesheet-repeater .btn-danger {
    height: 34px;
    margin-top: 0;
}

/* Cost Code Select Styling */
.cost-code-select {
    border: 2px solid #e7ecf1;
    transition: border-color 0.3s ease;
}

.cost-code-select:focus {
    border-color: #36c6d3;
    box-shadow: 0 0 0 0.2rem rgba(54, 198, 211, 0.25);
}

/* Job Typeahead Styling */
.job-typeahead {
    border: 2px solid #e7ecf1;
    transition: border-color 0.3s ease;
}

.job-typeahead:focus {
    border-color: #36c6d3;
    box-shadow: 0 0 0 0.2rem rgba(54, 198, 211, 0.25);
}

.typeahead.dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #36c6d3;
}

.typeahead.dropdown-menu > li > a {
    white-space: normal;
    line-height: 1.3;
    padding: 8px 12px;
}

.typeahead.dropdown-menu > .active > a {
    background-color: #36c6d3;
    color: white;
}

/* Time Input Styling */
.start-time, .finish-time {
    border: 2px solid #e7ecf1;
    transition: border-color 0.3s ease;
}

.start-time:focus, .finish-time:focus {
    border-color: #36c6d3;
    box-shadow: 0 0 0 0.2rem rgba(54, 198, 211, 0.25);
}

/* Total Summary Well */
.timesheet-repeater .well {
    background-color: #f8f9fa;
    border: 1px solid #e7ecf1;
    border-radius: 4px;
    margin-top: 20px;
}

/* Edit Time Modal Styles */
.edit-time-modal-content .form-group {
    margin-bottom: 15px;
}

.edit-time-modal-content .form-control-static {
    font-weight: bold;
    color: #2ab4c1;
}

/* Required field indicator */
.required {
    color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timesheet-modal-content {
        max-height: 60vh;
    }
    
    .timesheet-repeater .col-md-2,
    .timesheet-repeater .col-md-1 {
        margin-bottom: 10px;
    }
    
    .timesheet-repeater .btn-danger {
        width: 100%;
        margin-top: 10px;
    }
}

/* Animation for adding/removing entries */
.time-entry-row {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom button styles */
.btn-add-entry {
    background-color: #36c6d3;
    border-color: #36c6d3;
    color: white;
}

.btn-add-entry:hover {
    background-color: #2ab4c1;
    border-color: #2ab4c1;
}

/* Modal size adjustments */
.modal-xl {
    width: 95% !important;
    max-width: 1200px !important;
}

.modal-lg {
    width: 90% !important;
    max-width: 900px !important;
}

@media (max-width: 1200px) {
    .modal-xl {
        width: 98% !important;
        margin: 15px auto;
    }
}

@media (max-width: 900px) {
    .modal-lg {
        width: 95% !important;
        margin: 10px auto;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 4px;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.spinner-container {
    margin-bottom: 20px;
}

.loading-text {
    color: #34495e;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-overlay .text-muted {
    font-size: 14px;
    margin-bottom: 0;
}

/* Employee Row Animations */
.employee-row {
    transition: all 0.3s ease;
}

.employee-row:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.employee-avatar {
    transition: transform 0.3s ease;
}

.employee-row:hover .employee-avatar {
    transform: scale(1.1);
}

/* Enhanced Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-content {
    animation: pulse 2s infinite ease-in-out;
}

/* Loading Spinner Enhancement */
.fa-spinner.fa-spin {
    color: #36c6d3;
    filter: drop-shadow(0 0 10px rgba(54, 198, 211, 0.3));
}

/* Empty State Styling */
.text-center .fa-users {
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Loading */
@media (max-width: 768px) {
    .loading-content {
        padding: 20px;
    }
    
    .loading-text {
        font-size: 18px;
    }
    
    .fa-spinner.fa-3x {
        font-size: 2em !important;
    }
}
