/* ==========================================
   Daily Repair Report Design System (Vanilla CSS)
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #111827 100%);
    --panel-bg: rgba(30, 41, 59, 0.45);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --color-primary: #3b82f6;
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    --color-primary-dark: #2563eb;
    
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.4);
    
    --color-warning: #f59e0b;
    --color-warning-glow: rgba(245, 158, 11, 0.4);
    
    --color-danger: #ef4444;
    --color-danger-glow: rgba(239, 68, 68, 0.4);
    
    --color-info: #06b6d4;
    --color-info-glow: rgba(6, 182, 212, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --font-header: 'Outfit', 'Sarabun', sans-serif;
    --font-body: 'Inter', 'Sarabun', sans-serif;
    
    --sidebar-width: 280px;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

/* Reset & Global Rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #0b0f19;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Gradients */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: -2;
}

.glass-bg::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.glass-bg::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Status Badge */
.status-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--panel-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all var(--transition-speed);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success-glow);
}

.status-dot.offline {
    background-color: var(--color-warning);
    box-shadow: 0 0 8px var(--color-warning-glow);
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Layout Wrapper */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    margin: 20px 0 20px 20px;
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.brand-logo i {
    width: 24px;
    height: 24px;
    color: white;
}

.brand-text h1 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.menu-item i {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-speed);
}

.menu-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.menu-item:hover i {
    transform: translateX(3px);
}

.menu-item.active {
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-avatar i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.user-info {
    line-height: 1.3;
}

.user-fullname {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Workspace */
.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: calc(100% - var(--sidebar-width));
}

.topbar {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-title h2 {
    font-size: 1.35rem;
}

.topbar-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.topbar-date i {
    width: 18px;
    height: 18px;
}

/* Views Management */
.content-view {
    display: none;
    animation: fadeIn var(--transition-speed) ease-in-out;
}

.content-view.active {
    display: block;
}

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

/* Grid & Layout Forms */
.grid-form-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
}

/* Cards Design */
.card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.card-header i {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.card-header h3 {
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    width: 16px;
    height: 16px;
}

.required {
    color: var(--color-danger);
    font-weight: bold;
}

.form-row {
    display: flex;
    gap: 20px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="month"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.85);
}

textarea {
    resize: vertical;
}

/* Material Requisition Container */
.requisition-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.requisition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.requisition-header label {
    font-weight: 600;
    color: var(--color-info);
    display: flex;
    align-items: center;
    gap: 8px;
}

.requisition-header label i {
    width: 18px;
    height: 18px;
}

.info-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 8px;
}

/* Time Tracker Specifics */
.timer-card {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.6), rgba(17, 24, 39, 0.6));
}

.timer-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.timer-status {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.timer-clock {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, white 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.timer-clock.active {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px var(--color-primary-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.2)); }
    50% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6)); }
    100% { filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.2)); }
}

.timer-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    gap: 15px;
}

.time-box {
    text-align: center;
}

.time-box span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.time-box strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.timer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px var(--color-primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px var(--color-success-glow);
}
.btn-start:hover {
    box-shadow: 0 6px 20px var(--color-success-glow);
    transform: translateY(-2px);
}

.btn-finish {
    background: linear-gradient(135deg, var(--color-info) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px var(--color-info-glow);
}
.btn-finish:hover {
    box-shadow: 0 6px 20px var(--color-info-glow);
    transform: translateY(-2px);
}

.btn-reset-timer {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px dashed rgba(239, 68, 68, 0.3);
}
.btn-reset-timer:hover {
    background: rgba(239, 68, 68, 0.25);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px var(--color-danger-glow);
}
.btn-danger:hover {
    box-shadow: 0 6px 20px var(--color-danger-glow);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, var(--color-info) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px var(--color-info-glow);
}
.btn-info:hover {
    box-shadow: 0 6px 20px var(--color-info-glow);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.03);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.1);
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: white;
}

/* Login Overlay Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 50;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    animation: scaleIn var(--transition-speed) ease-in-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.6rem;
    margin: 15px 0 8px 0;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.logo-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .85; transform: scale(1.03); }
}

.error-msg {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: -5px;
    margin-bottom: 15px;
    display: none;
    font-weight: 500;
}

/* Modals Overlay (Dialogs) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    animation: slideUp var(--transition-speed) ease-in-out;
}

.modal-sm {
    max-width: 400px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header i {
    width: 28px;
    height: 28px;
}

.modal-header.text-warning i { color: var(--color-warning); }
.modal-header.text-info i { color: var(--color-info); }
.modal-header.text-danger i { color: var(--color-danger); }

.modal-body {
    font-size: 0.98rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-large {
    font-size: 1.1rem;
}
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-2 { margin-top: 10px; }
.ml-2 { margin-left: 10px; }
.text-green { color: var(--color-success) !important; }
.text-blue { color: var(--color-primary) !important; }
.text-orange { color: var(--color-warning) !important; }
.text-purple { color: #a855f7 !important; }
.bg-blue-tint { background: rgba(59, 130, 246, 0.1); }
.bg-orange-tint { background: rgba(245, 158, 11, 0.1); }
.bg-purple-tint { background: rgba(168, 85, 247, 0.1); }

/* Dashboard UI Layout */
.dashboard-filters {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.filter-type-group {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 4px;
}

.btn-filter {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-filter.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.filter-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-input-wrapper label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-input-wrapper input,
.filter-input-wrapper select {
    width: auto;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.filter-actions {
    display: flex;
    gap: 12px;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 5px;
}

/* Stats Overview Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 28px;
    height: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 2px 0;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Charts Sections */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.chart-header i {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.chart-header h3 {
    font-size: 0.95rem;
}

.chart-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Data Table Custom Styling */
.table-container {
    padding: 25px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.table-header .title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-header .title i {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.table-header h3 {
    font-size: 1.1rem;
}

.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    padding-left: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.88rem;
}

.scrollable-table {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 14px 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.text-muted { color: var(--text-muted); }

/* Hidden Preview Container for capturing */
.capture-card-container,
.summary-capture-container {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Individual report style for capturing */
.capture-card {
    width: 600px;
    padding: 35px;
    background: #0f172a;
    border: 4px solid #1e293b;
    border-radius: 12px;
    color: white;
    font-family: 'Sarabun', sans-serif;
}

.capture-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.capture-header i {
    width: 48px;
    height: 48px;
    color: #3b82f6;
}

.capture-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.capture-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}

.capture-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.capture-field {
    display: flex;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
}

.cap-label {
    width: 180px;
    font-weight: bold;
    color: #94a3b8;
}

.cap-val {
    flex-grow: 1;
    color: #f8fafc;
}

.capture-footer {
    margin-top: 30px;
    border-top: 1px solid #1e293b;
    padding-top: 15px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* Summary report style for capturing (08:00 - 08:00) */
.summary-capture-card {
    width: 900px;
    padding: 40px;
    background: #0f172a;
    border: 4px solid #1e293b;
    border-radius: 16px;
    color: white;
    font-family: 'Sarabun', sans-serif;
}

.summary-cap-header {
    border-bottom: 3px solid #06b6d4;
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.summary-cap-header h1 {
    font-size: 1.6rem;
    margin: 0;
    color: #f8fafc;
}

.summary-cap-header p {
    color: #06b6d4;
    font-size: 1rem;
    margin: 5px 0 0 0;
    font-weight: 600;
}

.summary-cap-meta span {
    font-size: 0.85rem;
    color: #94a3b8;
    background: #1e293b;
    padding: 6px 12px;
    border-radius: 6px;
}

.summary-cap-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.cap-stat-box {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.cap-stat-box .label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.cap-stat-box .val {
    font-size: 1.4rem;
    color: white;
    font-weight: bold;
}

.summary-cap-table table {
    width: 100%;
    border-collapse: collapse;
}

.summary-cap-table th {
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 12px 14px;
    border: 1px solid #334155;
    text-transform: none;
}

.summary-cap-table td {
    padding: 12px 14px;
    border: 1px solid #334155;
    font-size: 0.85rem;
    color: #f1f5f9;
}

.summary-cap-table tbody tr:nth-child(even) {
    background: #111827;
}

.summary-cap-footer {
    margin-top: 30px;
    border-top: 1px solid #334155;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.8rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* ----------------------------------------------------
   Responsive Breakpoints
   ---------------------------------------------------- */

@media (max-width: 1200px) {
    .grid-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: calc(100% - 40px);
        height: auto;
        margin: 20px;
        position: static;
    }
    
    .main-content {
        max-width: 100%;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dashboard-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-input-wrapper {
        width: 100%;
    }
    
    .filter-input-wrapper input,
    .filter-input-wrapper select {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .filter-actions button {
        flex-grow: 1;
    }
}

/* Custom manual time input & co-workers grid additions (Large & Responsive) */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.input-with-button input {
    flex-grow: 1;
}

.timer-card {
    padding: 30px !important;
    display: flex;
    flex-direction: column;
    gap: 25px !important;
}

.timer-card h3 {
    font-size: 1.3rem;
}

.timer-card input[type="datetime-local"] {
    font-size: 1.25rem;
    padding: 16px 20px;
    height: 60px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    text-align: center;
    color: white;
}

.timer-card input[type="datetime-local"]:focus {
    border-color: var(--color-info);
    box-shadow: 0 0 15px var(--color-info-glow);
}

.timer-card .input-with-button button {
    flex-shrink: 0;
    height: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0 22px;
    min-width: 90px;
    background: linear-gradient(135deg, var(--color-info) 0%, #0891b2 100%);
    box-shadow: 0 4px 15px var(--color-info-glow);
    color: white;
    transition: all var(--transition-speed);
}

.timer-card .input-with-button button:hover {
    box-shadow: 0 6px 20px var(--color-info-glow);
    transform: translateY(-2px);
}

.timer-card .duration-display {
    font-size: 1.15rem;
    padding: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 10px;
}

.timer-card .duration-display strong {
    font-size: 1.45rem;
    color: var(--color-warning);
    text-shadow: 0 0 8px var(--color-warning-glow);
}

.co-workers-list-wrapper {
    max-height: 180px !important;
    gap: 10px !important;
    padding: 15px !important;
}

.co-workers-list-wrapper label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1.1rem !important;
    color: var(--text-main);
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: background var(--transition-speed);
}

.co-workers-list-wrapper label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.co-workers-list-wrapper input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    cursor: pointer;
    accent-color: var(--color-primary);
}

#other-workers {
    padding: 16px 20px;
    font-size: 1.1rem;
    border-radius: 12px;
    height: 56px;
}

