﻿:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.home-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.home-button .icon {
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Login Display */
.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-login .icon {
    font-size: 1.2rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-logout {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.btn-logout:hover {
    color: white;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem;
    background: white;
    color: var(--secondary-color);
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.app-footer p {
    margin: 0.25rem 0;
}

.footer-legal {
    font-size: 0.85rem;
}

/* Home Page */
.home-container,
.records-container,
.reports-container,
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.employee-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0088ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.employee-details h2 {
    margin-bottom: 0.25rem;
}

.employee-details p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.clock-section {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.current-time {
    margin-bottom: 2rem;
}

.time-display {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.date-display {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-transform: capitalize;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.completed {
    background: #cce5ff;
    color: #004085;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.work-time-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.work-time-display h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.time-counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.2em;
}

/* Navigation Panel */
.navigation-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.panel-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.nav-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-8px) translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card-primary {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.nav-card-primary::before {
    background: var(--primary-color);
}

.nav-card-primary:hover {
    border-color: var(--primary-color);
}

.nav-card-success {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.nav-card-success::before {
    background: var(--success-color);
}

.nav-card-success:hover {
    border-color: var(--success-color);
}

.nav-card-warning {
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.nav-card-warning::before {
    background: var(--warning-color);
}

.nav-card-warning:hover {
    border-color: var(--warning-color);
}

.nav-card-info {
    background: linear-gradient(135deg, #f0fcff 0%, #ffffff 100%);
}

.nav-card-info::before {
    background: var(--info-color);
}

.nav-card-info:hover {
    border-color: var(--info-color);
}

.nav-card-icon {
    font-size: 4rem;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav-card:hover .nav-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-card-content {
    flex: 1;
}

.nav-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    transition: color 0.3s;
}

.nav-card:hover .nav-card-content h3 {
    color: var(--primary-color);
}

.nav-card-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.nav-card-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-card:hover .nav-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}


.today-records {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.today-records h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.records-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.timeline-item.timeline-clockin {
    border-left-color: var(--success-color);
}

.timeline-item.timeline-clockout {
    border-left-color: var(--danger-color);
}

.timeline-item.timeline-breakstart {
    border-left-color: var(--warning-color);
}

.timeline-item.timeline-breakend {
    border-left-color: var(--info-color);
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.timeline-time {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.badge-employee {
    background: #e7f3ff;
    color: #004085;
}

.badge-manager {
    background: #fff3cd;
    color: #856404;
}

.badge-administrator {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-clockin, .badge-completed, .badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-clockout, .badge-incomplete {
    background: #f8d7da;
    color: #721c24;
}

.badge-breakstart, .badge-breakend, .badge-inprogress, .badge-pending {
    background: #fff3cd;
    color: #856404;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Pages */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.filters-section,
.report-selector {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-icon {
    font-size: 2.5rem;
}

.summary-content h3 {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.records-table {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light-bg);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-text);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--light-bg);
}

tr.incomplete {
    background: #fff3cd22;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.detail-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.detail-time {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.detail-notes {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Reports */
.report-content {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.report-header-info {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.report-logo h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.report-meta p {
    margin-bottom: 0.5rem;
}

.report-summary {
    margin-bottom: 2rem;
}

.report-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.metric-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-text);
}

.metric-value.primary {
    color: var(--primary-color);
}

.metric-value.positive {
    color: var(--success-color);
}

.metric-value.negative {
    color: var(--danger-color);
}

.report-details {
    margin-bottom: 2rem;
}

.report-table th,
.report-table td {
    padding: 0.75rem;
}

.warning-row {
    background: #fff3cd22;
}

.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.report-footer {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

.legal-notice {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.legal-notice h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-notice p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.signatures {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.signature-box {
    text-align: center;
}

.signature-line {
    width: 200px;
    height: 60px;
    border-bottom: 2px solid var(--dark-text);
    margin: 1rem 0;
}

.signature-name {
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Admin */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tab-button {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s;
    font-weight: 500;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.team-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.employee-card-admin {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0088ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.employee-position {
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.employee-department {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.employee-stats {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.approvals-section,
.employees-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.employee-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mini-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0088ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .time-display {
        font-size: 2.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    /* Navigation Panel Responsive */
    .navigation-panel {
        padding: 1.5rem;
    }

    .panel-title {
        font-size: 1.5rem;
    }

    .nav-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .nav-card-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .nav-card-arrow {
        display: none;
    }

    .filters-section,
    .report-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }
}

/* Role Management */
.roles-section {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.section-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.employees-table th,
.employees-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.employees-table thead {
    background: var(--light-bg);
}

.employees-table tbody tr {
    transition: background 0.2s;
}

.employees-table tbody tr:hover {
    background: var(--light-bg);
}

.employees-table tbody tr.current-user {
    background: #e3f2fd;
}

.employee-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0088ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-administrator {
    background: var(--danger-color);
    color: white;
}

.badge-supervisor {
    background: var(--warning-color);
    color: var(--dark-text);
}

.badge-employee {
    background: var(--info-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.text-muted {
    color: var(--secondary-color);
    font-style: italic;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}


/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Page Header con Bot�n */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0;
    flex: 1;
}

.page-header p {
    margin: 0.5rem 0 0 0;
    flex-basis: 100%;
}

.page-header .btn {
    margin-top: 0;
}

/* Create Employee Form Styles */
.create-employee-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Estilos para Gesti�n de Empleados */

.employees-management-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
}

.employees-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.employee-management-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.employee-management-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.employee-management-card.current-user {
    border-color: var(--success-color);
    background: linear-gradient(to right, #ffffff, #f0f9ff);
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.employee-info {
    display: flex;
    gap: 1rem;
}

.employee-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.employee-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.employee-position {
    margin: 0.25rem 0;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.employee-email {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.employee-role-badge {
    display: flex;
    align-items: center;
}

.badge-large {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.employee-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.employee-incidents {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius);
}

.employee-incidents h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.incident-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.incident-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    min-width: 120px;
}

.incident-status {
    font-size: 0.9rem;
    font-weight: 500;
}

.employee-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-administrator {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-supervisor {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.badge-employee {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.badge-clockin {
    background-color: #10b981;
    color: white;
}

.badge-clockout {
    background-color: #ef4444;
    color: white;
}

.badge-breakstart {
    background-color: #f59e0b;
    color: white;
}

.badge-breakend {
    background-color: #8b5cf6;
    color: white;
}

@media (max-width: 768px) {
    .employee-header {
        flex-direction: column;
        gap: 1rem;
    }

    .employee-stats-grid {
        grid-template-columns: 1fr;
    }

    .employee-actions {
        flex-direction: column;
    }

    .employee-actions button {
        width: 100%;
    }
}

/* Botón Volver - Estilos globales */
.back-button-container {
    margin-bottom: 1.5rem;
}

.btn-back,
.back-button-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-back:hover,
.back-button-container .btn:hover {
    transform: translateX(-4px);
}

/* ==========================================
   LOGIN PAGE STYLES
   ========================================== */

/* Cuando estamos en la página de login, el main ocupa toda la pantalla */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.login-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: white;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.bg-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: white;
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.login-card {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.login-header .app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-header .logo-icon {
    font-size: 4rem;
    line-height: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-header .app-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.app-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0.5rem 0;
    font-weight: 300;
}

.compliance-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.login-content {
    padding: 2.5rem 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-section h2 {
    color: var(--dark-text);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e8f4ff;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--dark-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login .btn-icon {
    font-size: 1.3rem;
}

.btn-login .btn-text {
    font-size: 1.1rem;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.security-icon {
    font-size: 1.2rem;
}

.security-text {
    font-weight: 500;
}

/* Loading Overlay for Login */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-modal {
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUpModal 0.4s ease-out;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loading-spinner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e7ff;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.loading-text {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    opacity: 0.4;
}

.loading-step.active {
    opacity: 1;
    background: #e8f4ff;
    border-left: 4px solid #0066cc;
    transform: translateX(8px);
}

.loading-step .step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.loading-step .step-text {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.loading-note {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: #fff8e1;
    border-radius: var(--radius);
    border-left: 3px solid #ffc107;
}

.login-footer {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    color: var(--dark-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-legal {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        border-radius: 16px;
    }

    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .login-header .logo-icon {
        font-size: 3rem;
    }

    .login-header .app-name {
        font-size: 1.5rem;
    }

    .login-content {
        padding: 2rem 1.5rem;
    }

    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .features-list {
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.6rem;
    }

    .feature-icon {
        font-size: 1.25rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .login-footer {
        padding: 1.25rem 1.5rem;
    }
}

