/* CareConnect Frontend Styles */

/* === BASE === */
.cc-frontend { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #333; line-height: 1.6; }

/* === FORMS === */
.cc-form { max-width: 600px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.cc-form h2 { text-align: center; margin: 0 0 24px 0; color: #1a1a2e; font-size: 1.5rem; }
.cc-form-group { margin-bottom: 16px; }
.cc-form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: #444; margin-bottom: 5px; }
.cc-form-group input,
.cc-form-group select,
.cc-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.cc-form-group input:focus,
.cc-form-group select:focus,
.cc-form-group textarea:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0,120,212,0.12);
    outline: none;
    background: #fff;
}
.cc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* === SUBMIT BUTTON === */
.cc-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.cc-submit-btn:hover { background: #005fa3; }
.cc-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* === MESSAGES === */
.cc-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 14px 0;
    font-size: 0.92rem;
    font-weight: 500;
}
.cc-message-success { background: #d4edda; color: #155724; border: 1px solid #b5e0be; }
.cc-message-error   { background: #f8d7da; color: #721c24; border: 1px solid #f1b0b7; }
.cc-message-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #9fd8e6; }

/* === APPOINTMENT BOOKING === */
.cc-booking-form { max-width: 560px; margin: 0 auto; }
.cc-booking-form .cc-header { text-align: center; margin-bottom: 24px; }
.cc-booking-form .cc-header .cc-icon { font-size: 2.5rem; display: block; margin-bottom: 6px; }

/* === VACCINATION PORTAL === */
.cc-vaccination-list { max-width: 700px; margin: 0 auto; }
.cc-vax-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-left: 4px solid #0078d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cc-vax-card h4 { margin: 0 0 4px 0; font-size: 1rem; color: #1a1a2e; }
.cc-vax-card p { margin: 0; font-size: 0.85rem; color: #666; }
.cc-vax-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.cc-vax-badge-done    { background: #d4edda; color: #155724; }
.cc-vax-badge-pending { background: #fff3cd; color: #856404; }
.cc-vax-badge-overdue { background: #f8d7da; color: #721c24; }

/* === TIMECLOCK / ZEITERFASSUNG === */
.cc-timeclock {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cc-timeclock .cc-clock-display {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0078d4;
    letter-spacing: 2px;
    margin: 16px 0;
    font-variant-numeric: tabular-nums;
}
.cc-timeclock .cc-clock-date { font-size: 0.9rem; color: #888; margin-bottom: 24px; }
.cc-clock-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    margin: 6px;
}
.cc-clock-btn:active { transform: scale(0.97); }
.cc-clock-btn-in  { background: #107c10; color: #fff; }
.cc-clock-btn-in:hover  { background: #0a5d0a; }
.cc-clock-btn-out { background: #c62828; color: #fff; }
.cc-clock-btn-out:hover { background: #9b1c1c; }

/* === INVOICE LIST === */
.cc-invoice-list { max-width: 720px; margin: 0 auto; }
.cc-invoice-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cc-invoice-number { font-weight: 700; color: #0078d4; }
.cc-invoice-amount { font-size: 1.1rem; font-weight: 700; }

/* === LOADING SPINNER === */
.cc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,120,212,0.2);
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: cc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* === ANALYTICS DASHBOARD === */
.cc-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.cc-analytics-card {
    background: linear-gradient(135deg, #0078d4, #005fa3);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.cc-analytics-card .cc-val { font-size: 2rem; font-weight: 700; }
.cc-analytics-card .cc-label { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }

/* === PRESCRIPTION TRACKER === */
.cc-tracker { max-width: 560px; margin: 0 auto; }
.cc-tracker-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 0;
}
.cc-tracker-status::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
    transform: translateY(-50%);
}
.cc-tracker-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}
.cc-tracker-step .cc-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
}
.cc-tracker-step.done .cc-step-dot { background: #107c10; color: #fff; }
.cc-tracker-step.active .cc-step-dot { background: #0078d4; color: #fff; }
.cc-tracker-step .cc-step-label { font-size: 0.75rem; color: #666; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .cc-form { padding: 20px; }
    .cc-form-row { grid-template-columns: 1fr; }
    .cc-timeclock { padding: 20px; }
    .cc-analytics-grid { grid-template-columns: 1fr 1fr; }
}
