
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: #dbeafe;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.icon {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.header p {
    color: #6b7280;
}

.date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.nav-btn {
    height: 2rem;
    width: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.nav-btn:hover {
    background: #e5e7eb;
}

.nav-btn svg {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
}

.date-display {
    text-align: center;
}

.date-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.date-value {
    font-weight: 600;
    color: #1f2937;
}

.status-container {
    margin-bottom: 2rem;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-badge.off {
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.on {
    background: #dcfce7;
    color: #166534;
    animation: pulse 2s infinite;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.status-badge.off .status-dot {
    background: #9ca3af;
}

.status-badge.on .status-dot {
    background: #16a34a;
}

.time-display {
    margin-bottom: 2rem;
    text-align: center;
}

.time-value {
    font-size: 3rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.time-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.current-session {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.session-info {
    font-size: 0.875rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.session-time {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.session-label {
    font-size: 0.75rem;
    color: #3b82f6;
}

.session-count {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.session-count p {
    font-size: 0.875rem;
    color: #6b7280;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: none;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.main-btn:hover {
    transform: scale(1.05);
}

.main-btn:active {
    transform: scale(0.95);
}

.main-btn.clock-in {
    background: #16a34a;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
}

.main-btn.clock-in:hover {
    background: #15803d;
}

.main-btn.clock-out {
    background: #dc2626;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.main-btn.clock-out:hover {
    background: #b91c1c;
}

.secondary-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f59e0b;
    color: white;
    box-shadow: 0 6px 20px -6px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.secondary-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

.secondary-btn:active {
    transform: scale(0.95);
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.nav-btn-secondary {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s ease;
}

.nav-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

.reset-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.reset-btn:hover {
    color: #374151;
}

.hidden {
    display: none !important;
}

/* Calendar View Styles */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.month-nav h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.month-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
}

.stat-card.blue {
    background: #dbeafe;
}

.stat-card.green {
    background: #dcfce7;
}

.stat-card.purple {
    background: #f3e8ff;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card.blue .stat-value {
    color: #2563eb;
}

.stat-card.green .stat-value {
    color: #16a34a;
}

.stat-card.purple .stat-value {
    color: #9333ea;
}

.stat-label {
    font-size: 0.875rem;
}

.stat-card.blue .stat-label {
    color: #3b82f6;
}

.stat-card.green .stat-label {
    color: #22c55e;
}

.stat-card.purple .stat-label {
    color: #a855f7;
}

.calendar-grid {
    margin-top: 1.5rem;
}

.calendar-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.day-header {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    min-height: 5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: default;
}

.calendar-day:hover {
    background: #f9fafb;
}

.calendar-day.has-data {
    background: #dbeafe;
    border-color: #93c5fd;
}

.calendar-day.has-data:hover {
    background: #bfdbfe;
}

.calendar-day.today {
    ring: 2px solid #3b82f6;
}

.calendar-day.other-month {
    background: #f9fafb;
    border-color: #f3f4f6;
    color: #9ca3af;
}

.day-number {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.calendar-day.today .day-number {
    color: #2563eb;
}

.day-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.day-sessions {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .month-stats {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: 4rem;
    }
}

