/* --- Responsive Design Improvements --- */
@media (max-width: 600px) {
    .login-card, .card, .welcome-card {
        padding: 1rem;
        border-radius: 8px;
        max-width: 98vw;
    }
    .main-content, .employee-content {
        padding: 0.5rem;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
    }
    .sidebar {
        width: 100%;
        padding: 0.5rem 0;
    }
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .attendance-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .employee-content {
        max-width: 100vw;
    }
}

/* --- Animations and Transitions --- */
.card, .login-card, .welcome-card, .navbar, .main-content, .employee-content {
    transition: background 0.4s, color 0.4s, box-shadow 0.4s, padding 0.3s, border-radius 0.3s;
}

.btn-primary, .btn-secondary, .btn-logout, .btn-delete {
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active, .btn-secondary:active, .btn-logout:active, .btn-delete:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.page, .section {
    transition: opacity 0.4s, transform 0.4s;
    opacity: 1;
    transform: translateY(0);
}
.page:not(.active), .section:not(.active) {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* Modal animation example (if you add modals) */
.modal {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}
.modal.active {
    opacity: 1;
    transform: scale(1);
}
/* GeoAttendance - Styles */
* {
    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;
    color: #333;
}

#app {
    min-height: 100vh;
}

/* Page styling */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form styling */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102,126,234,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(102,126,234,0.16);
}

.btn-secondary {
    padding: 0.5rem 1.1rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(102,126,234,0.08);
    transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #5a6eea 0%, #6c4ba2 100%);
    box-shadow: 0 2px 8px rgba(102,126,234,0.14);
    transform: scale(1.03);
}

.btn-logout {
    padding: 0.5rem 1.1rem;
    background: linear-gradient(90deg, #dc3545 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(220,53,69,0.10);
    transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
}

.btn-logout:hover {
    background: linear-gradient(90deg, #c82333 0%, #b71c1c 100%);
    box-shadow: 0 2px 8px rgba(220,53,69,0.18);
    transform: scale(1.03);
}

/* Admin Dashboard */
.navbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar h2 {
    color: #333;
}

.admin-content {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    padding: 1rem 0;
}

.sidebar-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    background: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-btn:hover,
.sidebar-btn.active {
    background: #34495e;
}

.sidebar-btn i {
    margin-right: 0.5rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.10), 0 1.5px 6px rgba(76, 61, 139, 0.08);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18), 0 2px 8px rgba(76, 61, 139, 0.12);
    transform: translateY(-2px) scale(1.01);
}

.card h4 {
    margin-bottom: 1rem;
    color: #333;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Employee List */
.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.btn-delete {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
}

.employee-info h5 {
    margin-bottom: 0.25rem;
    color: #333;
}

.employee-info p {
    color: #666;
    font-size: 0.9rem;
}

.badge {
    padding: 0.25rem 0.7rem;
    background: linear-gradient(90deg, #28a745 0%, #43e97b 100%);
    color: white;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(40,167,69,0.10);
    letter-spacing: 0.2px;
}

/* Employee Dashboard */
.employee-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-card {
    background: linear-gradient(90deg, #e3eafe 0%, #f5f7fa 100%);
    padding: 2rem 1rem;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(102,126,234,0.10);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.15rem;
    color: #333;
    letter-spacing: 0.2px;
}

.attendance-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.attendance-actions button {
    flex: 1 1 120px;
    min-width: 120px;
}

.coordinates-display {
    background: #f8f9fa;
    padding: 1.1rem 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(102,126,234,0.06);
}

.coordinates-display h5 {
    margin-bottom: 0.5rem;
    color: #333;
}

.location-info {
    text-align: center;
    color: #666;
}

/* Status messages */
.loading {
    color: #666;
    font-style: italic;
    text-align: center;
    font-size: 1.05rem;
    margin: 0.5rem 0;
}

.success {
    color: #28a745;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin: 0.5rem 0 0.5rem 0;
}

.error {
    color: #dc3545;
    text-align: center;
    font-size: 1.05rem;
    margin: 0.5rem 0;
}

/* Modern Table Styles */
.table, table {
    background: white;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(102,126,234,0.06);
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    overflow: hidden;
}
table th, table td {
    padding: 0.85rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
table th {
    background: linear-gradient(90deg, #e3eafe 0%, #f5f7fa 100%);
    color: #333;
    font-weight: 700;
    border-bottom: 2px solid #dbeafe;
    letter-spacing: 0.5px;
}
table tr {
    transition: background 0.2s;
}
table tr:nth-child(even) {
    background: #f7f9fc;
}
table tr:nth-child(odd) {
    background: #fff;
}
table tr:hover {
    background: #e6f0ff;
}
table td {
    font-size: 0.98rem;
    color: #222;
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .attendance-actions {
        flex-direction: column;
    }
}
