/* ============================================
   MISSING TIME CLOCK STYLES
   These styles are needed but missing from your CSS files
   ============================================ */

/* Time Clock Tab Navigation */
.timeclock-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.timeclock-tab {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.timeclock-tab:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.timeclock-tab.active {
    background: white;
    color: #2c3e50;
    border-color: #e0e0e0;
    border-bottom-color: white;
    font-weight: 600;
}

.timeclock-tab-content {
    display: none;
}

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

/* Time Clock Layout */
.timeclock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.timeclock-header h2 {
    margin: 0;
    color: #2c3e50;
}

.timeclock-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.current-period {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding: 0 15px;
}

/* Time Clock Grid Layout */
.timeclock-grid {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

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

/* Time Clock Panels */
.timeclock-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

/* Employee List */
.employee-list {
    max-height: 500px;
    overflow-y: auto;
}

.employee-card {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.employee-card:hover {
    background: #f8f9fa;
}

.employee-card:last-child {
    border-bottom: none;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.employee-role {
    font-size: 12px;
    color: #7f8c8d;
}

.employee-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.employee-status.clocked-in {
    background: #d4edda;
    color: #155724;
}

.employee-status.clocked-out {
    background: #f8d7da;
    color: #721c24;
}

/* Calendar Panel */
.calendar-panel {
    grid-column: span 2;
}

.calendar {
    padding: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    color: #7f8c8d;
    padding: 10px;
    font-size: 12px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
}

.calendar-day:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.calendar-day.today {
    background: #e3f2fd;
    border-color: #3498db;
    font-weight: 600;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.has-entries {
    background: #e8f5e9;
    border-color: #4caf50;
}

.day-number {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.entry-badge {
    font-size: 10px;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}

/* Summary Panel */
.summary-stats {
    padding: 20px;
}

.summary-stat {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-value.positive {
    color: #27ae60;
}

.stat-value.negative {
    color: #e74c3c;
}

/* Weekly Hours List */
.employee-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.employee-stats:last-child {
    border-bottom: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-box {
    text-align: center;
}

.stat-box .stat-label {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stat-box .stat-value {
    font-size: 20px;
    font-weight: 700;
}

/* Week Navigation */
.week-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Recent Entries Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: #f8f9fa;
}

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

/* Badge for entry types */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Employee Details Modal Styles */
.employee-details-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeclock-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        border-bottom: none;
        margin-bottom: 12px;
    }

    .timeclock-tab {
        padding: 8px 4px;
        font-size: 12px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .timeclock-tab.active {
        border-color: #3498db;
        border-bottom: 1px solid #3498db;
    }

    .timeclock-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeclock-controls {
        width: 100%;
        flex-direction: column;
    }

    .timeclock-controls button,
    .timeclock-controls .current-period {
        width: 100%;
        text-align: center;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .entry-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}
