@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Status Colors (Adjusted for light bg) */
    --status-active: #059669;    /* 在席 */
    --status-busy: #d97706;      /* 取込中 */
    --status-away: #475569;      /* 離席 */
    --status-out: #2563eb;       /* 外出 */
    --status-break: #d97706;     /* 休憩中 */
    --status-vacation: #db2777;  /* 休暇 */
    --status-none: #64748b;      /* 未出勤 */
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.4;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.9);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Status variants */
.status-在席 { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.status-在席 .status-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }

.status-取込中 { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.status-取込中 .status-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.status-離席 { background: rgba(100, 116, 139, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.status-離席 .status-dot { background: #64748b; }

.status-外出 { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); }
.status-外出 .status-dot { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

.status-休暇 { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.3); }
.status-休暇 .status-dot { background: #ec4899; box-shadow: 0 0 8px #ec4899; }

.status-休憩中 { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.status-休憩中 .status-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.status-未出勤 { background: rgba(71, 85, 105, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.status-未出勤 .status-dot { background: #475569; }

/* Custom Inputs */
input, select, textarea {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-main) !important;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Modal Styling */
.modal-overlay {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem !important;
}

/* Status Radio Styling */
.status-option div {
    position: relative;
    overflow: hidden;
    background: #f1f5f9; /* Default fallback */
}

/* Base colors for each status (light version) */
.status-option[data-status="在席"] .status-badge-style { background: rgba(5, 150, 105, 0.1); color: var(--status-active); }
.status-option[data-status="在席"] .status-dot { background: var(--status-active); }

.status-option[data-status="取込中"] .status-badge-style { background: rgba(217, 119, 6, 0.1); color: var(--status-busy); }
.status-option[data-status="取込中"] .status-dot { background: var(--status-busy); }

.status-option[data-status="離席"] .status-badge-style { background: rgba(71, 85, 105, 0.1); color: var(--status-away); }
.status-option[data-status="離席"] .status-dot { background: var(--status-away); }

.status-option[data-status="外出"] .status-badge-style { background: rgba(37, 99, 235, 0.1); color: var(--status-out); }
.status-option[data-status="外出"] .status-dot { background: var(--status-out); }

.status-option[data-status="休憩中"] .status-badge-style { background: rgba(245, 158, 11, 0.1); color: var(--status-break); }
.status-option[data-status="休憩中"] .status-dot { background: var(--status-break); }

.status-option[data-status="休暇"] .status-badge-style { background: rgba(219, 39, 119, 0.1); color: var(--status-vacation); }
.status-option[data-status="休暇"] .status-dot { background: var(--status-vacation); }

.status-option[data-status="未出勤"] .status-badge-style { background: rgba(100, 116, 139, 0.1); color: var(--status-none); }
.status-option[data-status="未出勤"] .status-dot { background: var(--status-none); }

/* Checked state (solid color) */
.status-option input:checked + div {
    color: white !important;
    font-weight: 600;
}

.status-option[data-status="在席"] input:checked + div { background-color: var(--status-active) !important; }
.status-option[data-status="取込中"] input:checked + div { background-color: var(--status-busy) !important; }
.status-option[data-status="離席"] input:checked + div { background-color: var(--status-away) !important; }
.status-option[data-status="外出"] input:checked + div { background-color: var(--status-out) !important; }
.status-option[data-status="休憩中"] input:checked + div { background-color: var(--status-break) !important; }
.status-option[data-status="休暇"] input:checked + div { background-color: var(--status-vacation) !important; }
.status-option[data-status="未出勤"] input:checked + div { background-color: var(--status-none) !important; }

.status-option input:checked + div .status-dot {
    background: white !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
