/* style.css - PetLovers CR Vet Portal CSS Stylesheet */

:root {
    --color-bg: #F9FAFB;
    --color-surface: #FFFFFF;
    --color-primary: #7C3AED;
    --color-primary-hover: #6D28D9;
    --color-accent-light: #EDE9FE;
    --color-text: #1F2937;
    --color-text-light: #4B5563;
    --color-border: #E5E7EB;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Authentication Container */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at 10% 20%, rgba(237, 233, 254, 0.4) 0%, rgba(255, 255, 255, 0) 80%);
}

.auth-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--color-text-light);
    font-weight: 600;
}

/* Dashboard Layout */
.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    color: #EF4444;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.dashboard-container {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1400px;
    width: 100%;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
}

/* Sidebar List */
.sidebar {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
}

.sidebar h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
}

.patient-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.patient-item {
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--color-bg);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.patient-item:hover, .patient-item.active {
    border-color: var(--color-primary);
    background-color: var(--color-accent-light);
}

.patient-item h3 {
    font-size: 1rem;
    font-weight: 800;
}

.patient-item p {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Main Dashboard Panel */
.main-panel {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-item {
    border-left: 3px solid var(--color-primary);
    padding-left: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.timeline-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.timeline-item-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
}

.timeline-item-header span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Forms styling */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-accent-light);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

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

.form-toggle {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.form-toggle a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #D1FAE5;
}

/* Sections Grid Layouts */
.record-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

.records-section {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}
