/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- LOGIN CARD (UPDATED FOR SIDE-BY-SIDE BUTTONS) --- */
.login-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 60px auto;
    width: 100%;
    max-width: 400px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing thodi kam ki hai taki clean lage */
}

/* Status area styling */
.status {
    margin-bottom: 10px;
    font-size: 14px;
}

.login-card h2 {
    margin-bottom: 5px;
    color: #444;
}

/* Input Groups for Login */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

/* Form layout to handle buttons */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Button Row: Ye Logout aur Break buttons ko ek line mein layega */
.button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

/* All Inputs Style */
input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    width: 100%;
}

input:focus {
    border-color: #667eea;
}

/* Common Button Styles */
button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Specific Button Colors */
#loginBtn, #adminLoginBtn, #filterBtn, #showAllBtn {
    background: #667eea;
    color: white;
}

#logoutBtn {
    background: #f1f2f6;
    color: #ff4757;
    border: 1px solid #ff4757;
    flex: 1; /* Equal width */
}

#startBreakBtn, #breakBtn {
    background: #ff9800;
    color: white;
    flex: 1; /* Equal width */
}

#endBreakBtn {
    background: #28a745;
    color: white;
    flex: 1;
}

#exportBtn { background: #28a745; color: white; }
#addEmpBtn { background: #20c997; color: white; }

/* Today's Record Section */
.today-record {
    margin-top: 20px;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* --- ADMIN & TABLES (UNCHANGED) --- */
.admin-header, .filter-section, .add-employee, .table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.table-container {
    padding: 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

.manual-break-col { color: #2196F3; font-weight: bold; }
.auto-idle-col { color: #f44336; font-weight: bold; }
.net-hours-col { color: #28a745; font-weight: bold; }

.input-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.input-row input {
    flex: 1;
    min-width: 200px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-row {
        flex-direction: column;
    }

    .login-card {
        margin: 20px;
        padding: 20px;
    }
}