/*
Theme Name: HomeoCare Clinic Portal
Theme URI: https://dealsarea.in/
Author: Clinic Tech
Description: Complete standalone WordPress theme for Homeopathic Doctors with built-in Patient Lookup by Mobile Number, Date-Based Progress & In-Progress Case Tracking, Medicine Prescriptions, and Full Patient History Timeline.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: homeocare-clinic
*/

:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-light: #f0fdfa;
    --primary-border: #99f6e4;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

.hc-navbar {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.hc-navbar-brand {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.hc-navbar-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.hc-navbar-meta a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.hc-navbar-meta a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hc-container {
    max-width: 1120px;
    margin: 24px auto;
    padding: 0 16px 40px 16px;
}

.hc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hc-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.hc-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.hc-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #475569;
}

.hc-field input,
.hc-field select,
.hc-field textarea,
.hc-input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
}

.hc-field input:focus,
.hc-field select:focus,
.hc-field textarea:focus,
.hc-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.hc-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hc-btn:hover {
    background: var(--primary-hover);
}

.hc-btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
}

.hc-btn-secondary:hover {
    background: #cbd5e1;
}

.hc-btn-danger {
    background: #fee2e2;
    color: #991b1b;
}

.hc-btn-danger:hover {
    background: #fecaca;
}

.hc-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.hc-search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hc-patient-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.15s ease;
}

.hc-patient-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.hc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-In-Progress {
    background: #fef3c7;
    color: #92400e;
}

.status-Improved {
    background: #dcfce7;
    color: #166534;
}

.status-Cured {
    background: #dbeafe;
    color: #1e40af;
}

.status-Follow-Up {
    background: #fee2e2;
    color: #991b1b;
}

.hc-visit-item {
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    padding: 16px 18px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 14px;
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.hc-med-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    margin-top: 8px;
    font-size: 14px;
}

.hc-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.hc-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.hc-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.hc-login-box {
    max-width: 440px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hc-login-box h2 {
    color: var(--primary);
    margin-bottom: 8px;
}

.hc-login-box p.sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.hc-login-box .login-username,
.hc-login-box .login-password {
    margin-bottom: 14px;
}

.hc-login-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hc-login-box input[type="text"],
.hc-login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.hc-login-box input[type="submit"] {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 11px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.hc-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media print {
    .hc-navbar, .no-print, #hc-search-card, #hc-visit-entry-card, #hc-patient-form-card {
        display: none !important;
    }
    body { background: #ffffff; }
    .hc-card { border: none; box-shadow: none; padding: 0; }
}
