/* assets/style.css */

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

/* Typography & Colors */
.text-primary {
    color: #4f46e5 !important;
}

.bg-primary {
    background-color: #4f46e5 !important;
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
}

.btn-outline-primary {
    color: #4f46e5;
    border-color: #4f46e5;
}

.btn-outline-primary:hover, .btn-check:checked + .btn-outline-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

/* Card Styling */
.card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025) !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.input-group-text {
    border: 1px solid #cbd5e1;
    border-right: none;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 1px solid #6366f1;
    margin-left: -1px; /* Quick fix for border overlapping */
}

/* Utilities */
.transition-hover {
    transition: all 0.2s ease-in-out;
}

.transition-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4) !important;
}

/* Schedule Matrix Styles (For event.php) */
.schedule-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.schedule-matrix th, .schedule-matrix td {
    border: 1px solid #e2e8f0;
    text-align: center;
    padding: 0.5rem;
}

.schedule-matrix th {
    background-color: #f1f5f9;
    font-weight: 500;
    color: #475569;
}

.schedule-matrix td.selectable-cell {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s ease;
}

.schedule-matrix td.selectable-cell:hover {
    background-color: #e0e7ff;
}

/* Status colors in matrix */
.status-ok { background-color: #dcfce7 !important; color: #166534; font-weight: bold; }
.status-ng { background-color: #fee2e2 !important; color: #991b1b; }
.status-mid { background-color: #fef9c3 !important; color: #854d0e; }

/* Custom Checkbox Container */
.cell-checkbox {
    display: none;
}

.cell-content {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 24px;
}
