/**
 * [Senior Standard] Check-in System Style v3.9
 * Features: Pastel Gradients, Responsive Calendar, Visual Feedback
 */

.checkin-app-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Editor Panel */
.editor-panel {
    background: #fff;
    padding: 25px;
}

.panel-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}
.panel-header h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: #1e293b; }
.panel-header p { margin: 0; font-size: 0.9rem; color: #64748b; }

.editor-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-group label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.input-group input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Theme Engine */
.theme-engine-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

.theme-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.t-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}
.t-btn:hover { transform: scale(1.1); }

.t-green { background: linear-gradient(135deg, #a8e063, #56ab2f); }
.t-red { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.t-blue { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.t-orange { background: linear-gradient(135deg, #f6d365, #fda085); }
.t-purple { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.t-cyan { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.btn-rnd {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Main Check-in Card */
.checkin-card {
    padding: 30px;
    background: #fff;
    transition: background 0.5s ease;
}

.checkin-header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.checkin-header h1 { margin: 0; font-size: 2rem; }
.checkin-header p { margin: 10px 0 0; font-size: 1rem; opacity: 0.9; }

/* Calendar */
.calendar-section {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.calendar-nav {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #334155;
}

.calendar-container {
    max-width: 100%;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    color: #334155;
    cursor: default;
    transition: all 0.2s;
    background: #f8fafc;
}

.day-cell.today {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    cursor: pointer;
    background: #fff;
}
.day-cell.today:hover {
    background: #eff6ff;
    transform: scale(1.05);
}

.day-cell.checked {
    background: #dcfce7;
    color: #166534;
    position: relative;
}
.day-cell.checked::after {
    content: '✔';
    font-size: 0.8rem;
    position: absolute;
    bottom: 2px;
}

/* Legend & Status */
.info-legend-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #475569;
}
.info-legend-box p { margin: 5px 0; }
.info-legend-box .hint { color: #0369a1; font-weight: 600; margin-top: 10px; }

.status-dashboard {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}
.status-item .label { font-size: 0.85rem; opacity: 0.9; }
.status-item .value { font-weight: 600; margin-top: 5px; }
.status-item.highlight .count { font-size: 1.5rem; font-weight: 800; }
.status-item.highlight .unit { font-size: 0.8rem; }

/* Toast */
.toast-system {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}
.toast-system.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .input-row { flex-direction: column; gap: 10px; }
    .checkin-header h1 { font-size: 1.5rem; }
    .day-cell { font-size: 0.9rem; }
}
