/* General Resets */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #e6edf3;
    color: #333;
    padding-top: 30px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

/* ✅ Top Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Desktop nav (hidden on mobile) */
.desktop-nav a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #3eaf7c;
  border-bottom: 2px solid #3eaf7c;
}

/* Show/hide desktop/mobile nav */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
}

.top-navbar .app-title {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #1a1a1a;
}

.top-navbar .icon-link,
.top-navbar .profile-btn {
    background: none;
    border: none;
    margin-left: 1rem;
    cursor: pointer;
}

.top-navbar .icon-link i,
.top-navbar .profile-btn i {
    width: 20px;
    height: 20px;
    color: #f5f121;
}

/* ✅ Main Layout */
.main-layout {
    display: flex;
    margin-top: 64px; /* height of navbar */
    height: calc(100vh - 64px);
}

/* ✅ Sidebar Navigation */
.sidebar {
    width: 270px;
    background-color: #f0f2f5;
    border-right: 1px solid #ddd;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar .nav-links li {
    margin-bottom: 1.3rem;
}

.sidebar .nav-links a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    color: #222;
}

.sidebar .nav-links a:hover {
    background-color: #e6e6e6;
}

.sidebar i {
    margin-right: 0.6rem;
    vertical-align: middle;
}

/* ✅ Sidebar Small Descriptions */
.sidebar small {
    display: block;
    font-size: 0.72rem;
    color: #666;
    margin-top: 2px;
    margin-left: 1.9rem; /* to align under icon+title */
}

/* ✅ Page Content */
.content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ✅ Alerts Section */
.alert-container {
    margin-bottom: 1rem;
}

/* ✅ Dropdown Menu Fixes */
.dropdown-menu {
    font-size: 0.9rem;
}

/* ✅ Responsive Mobile */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
        border-right: none;
        border-top: 1px solid #ccc;
        padding: 0.5rem 1rem;
    }

    .sidebar .nav-links li {
        display: inline-block;
        margin-right: 1rem;
    }

    .sidebar .nav-links a {
        padding: 0.4rem 0.6rem;
    }

    .sidebar small {
        display: none;
    }

    .content {
        order: 1;
        padding: 1rem;
    }
}

/* ✅ Form Layouts */
form {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
    max-width: 650px;
    margin-bottom: 2rem;
    margin: 0 auto 2rem auto; 
}

/* ✅ Form Group */
form label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
    color: #333;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #00a884;
    outline: none;
    background-color: #fff;
}

/* ✅ Buttons */
.btn {
    padding: 1.55rem 2.1rem;
    font-size: 0.95rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #00a884;
    color: white;
    padding: 2px;
    margin-bottom:2px;
}

.btn-primary:hover {
    background-color: #008c72;
}

.btn-outline-primary {
    border: 1px solid #00a884;
    color: #00a884;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #e8f5f0;
}

.btn-outline-danger {
    border: 1px solid #d9534f;
    color: #d9534f;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #fae6e6;
}

/* ✅ Small Button Variant */
.btn-sm {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
}

/* ✅ Alert Messages (Bootstrap override) */
.alert {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
}

/* ✅ Field Error Messages */
.errorlist {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: -0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1px;
}

/* ✅ Section Headings */
h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #51d828;
    text-align: center;
}

p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* ✅ Responsive Form Padding */
@media (max-width: 768px) {
    form {
        padding: 1rem;
    }
}
/* ✅ Generic Card for Record Listings */
.record-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: background 0.2s ease;
}

.record-card:hover {
    background: #f9f9f9;
}

/* ✅ Card Title & Description */
.record-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #212121;
}

.record-card small {
    color: #666;
    display: block;
    font-size: 0.88rem;
}

/* ✅ Actions inside record cards */
.card-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.card-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* ✅ Section Title Above Lists */
.section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212121;
}

/* ✅ Empty State Text */
.empty-state {
    font-style: italic;
    color: #888;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* ✅ Horizontal Rule Styling */
hr {
    border-top: 1px solid #dcdcdc;
    margin: 1.5rem 0;
}

/* ✅ Responsive List Stack */
@media (max-width: 768px) {
    .record-card {
        padding: 0.9rem;
    }

    .record-card h5 {
        font-size: 1rem;
    }

    .card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-actions .btn {
        width: 100%;
    }
}
/* ✅ Dashboard Stats Container */
.dashboard-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* ✅ Individual Stat Card */
.stat-card {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    flex: 1 1 220px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-title {
    font-size: 0.9rem;
    color: #464646;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2e2e2e;
}

/* ✅ Notifications Panel */
.notifications-panel {
    background: #fefefe;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
}

.notifications-panel h4 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.notification-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.notification-item {
    border-left: 4px solid #3eaf7c;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.6rem;
    background-color: #f9fdfb;
    border-radius: 4px;
}

.notification-item strong {
    color: #222;
}

.due-date {
    color: #d9534f;
    font-weight: 500;
}

/* ✅ No alerts */
.no-alerts {
    color: #777;
    font-style: italic;
    font-size: 0.95rem;
}

/* ✅ Reporting Chart Section */
.analytics-chart {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.analytics-chart h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #222;
}

/* ✅ Section Headings for Dashboards */
.section-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2b2b2b;
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-card {
        flex: 1 1 100%;
    }

    .analytics-chart {
        padding: 0.9rem;
    }
}
/* ✅ Sidebar Container */
.sidebar {
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    width: 250px;
    min-height: 100vh;
    padding-top: 1rem;
    position: fixed;
    top: 56px; /* below navbar */
    left: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* ✅ Sidebar Items */
.sidebar a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: background 0.2s ease, border-color 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #f5f5f5;
    border-left: 4px solid #3eaf7c;
    color: #000;
}

.sidebar a .icon {
    margin-right: 0.75rem;
    color: #3eaf7c;
}

.sidebar small {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-left: 2.2rem;
    margin-top: -0.4rem;
    margin-bottom: 0.6rem;
}

/* ✅ Collapsible Behavior for Mobile */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    background: #fff;
    border: none;
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ✅ Push content when sidebar visible */
.with-sidebar {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

/* ✅ Mobile adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .with-sidebar {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
}
/* ✅ Auth Container */
.auth-wrapper {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* ✅ Form Headers */
.auth-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #3eaf7c;
    text-align: center;
}

.auth-wrapper p {
    font-size: 0.95rem;
    text-align: center;
    color: #666;
}

/* ✅ Input Styling */
.auth-wrapper input,
.auth-wrapper select,
.auth-wrapper textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: border-color 0.2s;
}

.auth-wrapper input:focus {
    border-color: #3eaf7c;
    outline: none;
    background-color: #fff;
}

/* ✅ Form Labels */
.auth-wrapper label {
    font-weight: 500;
    color: #444;
    display: block;
    margin-bottom: 0.3rem;
}

/* ✅ Form Actions */
.auth-wrapper .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.auth-wrapper .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    background-color: #3eaf7c;
    color: #fff;
    border: none;
    transition: background-color 0.2s;
}

.auth-wrapper .btn:hover {
    background-color: #35966a;
}

/* ✅ Links */
.auth-wrapper a {
    font-size: 0.9rem;
    color: #3eaf7c;
    text-decoration: none;
}

.auth-wrapper a:hover {
    text-decoration: underline;
}

/* ✅ Divider line */
.auth-divider {
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: "or";
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 0.5rem;
    color: #aaa;
}

/* ✅ Step Indicators (if onboarding multi-step) */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step-indicator .step {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: #bbb;
}

.step-indicator .active {
    color: #3eaf7c;
    font-weight: bold;
    position: relative;
}

.step-indicator .active::after {
    content: '';
    display: block;
    margin: 0.3rem auto 0;
    width: 6px;
    height: 6px;
    background: #3eaf7c;
    border-radius: 50%;
}

/* ✅ Error messages */
.error-message {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
}
/* ✅ Report Table */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.report-table th,
.report-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.report-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.report-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* ✅ Chart Container */
.chart-box {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.chart-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #3eaf7c;
}

/* ✅ Filter bar for reports */
.report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

/* Make date and select filters narrower so they can fit side-by-side */
.report-filters select,
.report-filters input[type="date"] {
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #fff;
    width: 160px; /* ✅ Adjust this for desktop to allow side-by-side layout */
}

/* Buttons align with filters */
.report-filters button {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

/* ✅ Mobile responsiveness */
@media (max-width: 576px) {
    .report-filters {
        gap: 0.5rem;
    }

    .report-filters select,
    .report-filters input[type="date"] {
        width: 48%; /* Two items per row on mobile */
    }

    .report-filters button {
        width: 100%; /* Button takes full width below filters */
    }
}

/* ✅ Summary Cards for Totals */
.summary-card {
    background-color: #f5fdf9;
    border: 1px solid #d4f0e1;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    flex: 1 1 200px;
}

.summary-card h5 {
    font-size: 1.2rem;
    color: #3eaf7c;
    margin-bottom: 0.3rem;
}

.summary-card span {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* ✅ Responsive grid for cards */
.summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ✅ Notification Box */
.notification-box {
    border-left: 4px solid #3eaf7c;
    background-color: #e8fdf2;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.notification-box h6 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: #2c9c6b;
}

.notification-box p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0;
}


/* ✅ Farm Settings Form */
.settings-form {
    max-width: 600px;
    margin: 2rem auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid #e4e4e4;
}

.settings-form h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #3eaf7c;
    text-align: center;
}

.settings-form .form-group {
    margin-bottom: 1rem;
}

.settings-form label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

.settings-form input,
.settings-form select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    background-color: #fdfdfd;
}

.settings-form button {
    margin-top: 1rem;
    background-color: #3eaf7c;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.settings-form button:hover {
    background-color: #379d6c;
}

.vet-listing {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
}

.vet-card {
    flex: 1 1 260px;
    border: 1px solid #e3e3e3;
    padding: 1rem;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.vet-card h5 {
    font-size: 1.1rem;
    color: #3eaf7c;
    margin-bottom: 0.3rem;
}

.vet-card p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #444;
}

.vet-card .icon {
    margin-right: 6px;
    color: #888;
}
/* ✅ Tab Navigation */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
}

.tab-nav a {
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-nav a.active,
.tab-nav a:hover {
    color: #3eaf7c;
    border-bottom-color: #3eaf7c;
}

.tab-content {
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
}
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 12px;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    margin: 2rem 0;
    color: #888;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0;
}
@media screen and (max-width: 768px) {
    .vet-listing {
        flex-direction: column;
    }

    .tab-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-nav a {
        border-left: 4px solid transparent;
        border-bottom: none;
    }

    .tab-nav a.active,
    .tab-nav a:hover {
        border-left-color: #3eaf7c;
    }
}
@media screen and (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-grid {
        flex-direction: column;
    }

    .report-table th,
    .report-table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}
.onboarding-wrapper {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.onboarding-wrapper h2 {
    text-align: center;
    color: #3eaf7c;
    margin-bottom: 1.5rem;
}

.setup-section {
    margin-bottom: 2rem;
}

.setup-section summary {
    font-weight: 600;
    color: #3eaf7c;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.setup-section[open] {
    border-top: 1px solid #dcdcdc;
    padding-top: 1rem;
}

.setup-section form {
    margin-top: 1rem;
}

.setup-section input,
.setup-section select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3eaf7c;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 0.5rem;
}

/* ✅ General Page Layout */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2e7d32; /* dark green */
}

/* ✅ Setup Section Cards */
.setup-section {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.setup-section:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.setup-section summary {
  background: #f8f9fa;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.setup-section summary:hover {
  background: #eef7f0;
}

.setup-section[open] summary {
  border-bottom: 1px solid #e0e0e0;
  background: #eaf6ed;
  color: #2e7d32;
}

.setup-section summary h4 {
  margin: 0;
  font-size: 1.05rem;
}

/* ✅ Form Styling Inside Sections */
.setup-section form {
  padding: 1rem 1.2rem;
}

.setup-section input,
.setup-section select,
.setup-section textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.setup-section input:focus,
.setup-section select:focus,
.setup-section textarea:focus {
  border-color: #3eaf7c;
  outline: none;
  box-shadow: 0 0 4px rgba(62, 175, 124, 0.4);
}

/* ✅ Button Styling */
.setup-section button {
  padding: 0.55rem 1.2rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.setup-section button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ Reference Entry Cards */
.reference-entry {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.reference-entry:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ✅ Section Titles */
.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid #3eaf7c;
  padding-bottom: 0.5rem;
  text-align: center;
}

/* ✅ Mobile Tweaks */
@media (max-width: 768px) {
  .setup-section summary {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .setup-section form {
    padding: 0.8rem 1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

.modal-content {
    border-radius: 10px;
    border: 1px solid #ddd;
}

.modal-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-size: 1.1rem;
    color: #3eaf7c;
    font-weight: 600;
}

.modal-footer button {
    border-radius: 6px;
    padding: 0.5rem 1rem;
}
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

.toast {
    background-color: #ffffff;
    border-left: 4px solid #3eaf7c;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    color: #444;
}
.btn-primary {
    background-color: #3eaf7c;
    border-color: #3eaf7c;
    color: #fff;
    padding: 2px;
}

.btn-primary:hover {
    background-color: #379d6c;
    border-color: #379d6c;
}

.btn-secondary {
    background-color: #dddddd;
    border-color: #cccccc;
    color: #444;
}

.btn-secondary:hover {
    background-color: #ccc;
    border-color: #bbb;
    color: #333;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b52a38;
    border-color: #b52a38;
}
@media screen and (max-width: 600px) {
    .onboarding-wrapper,
    .settings-form {
        padding: 1rem;
        border-radius: 8px;
    }

    .dashboard-sidebar {
        padding: 0.5rem 0;
    }

    .dashboard-sidebar a {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-box {
        width: 100%;
    }

    .tab-nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}


/* Dropdown positioning and visibility */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 10rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.position-relative:hover .dropdown-menu,
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Card behavior */
.card {
    background-color: #ffffff;
    border: 1px solid #e3e6ec;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.05);
}

.card a {
    font-weight: 500;
    color: #1f2937;
}

.card p {
    margin-bottom: 0;
}

/* Dropdown content inside cards */
.dropdown-content {
    display: none;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    text-align: left;
}

.card:hover .dropdown-content {
    display: flex;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .card {
        text-align: center;
    }

    .dropdown-content {
        font-size: 14px;
    }
}

.report-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: background 0.2s ease;
    border: 1px solid #e2e8f0;
}

.report-item:hover {
    background-color: #f1f5f9;
}

.icon-box {
    font-size: 1.8rem;
    color: #1e293b;
    width: 40px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.report-text {
    flex: 1;
}

.report-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.report-text p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsiveness For Mobile */
@media (max-width: 576px) {
    .report-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .icon-box {
        font-size: 1.6rem;
        width: 36px;
    }

    .report-text h3 {
        font-size: 0.95rem;
    }

    .report-text p {
        font-size: 0.8rem;
    }
}
/* ================================
   Filter Form Horizontal Layout
   ================================ */
.form.filter-form, 
form.filter-form, 
form.form {  
    display: flex;
    flex-wrap: wrap;   /* Wrap to next line on small screens */
    align-items: center;
    gap: 0.50rem;      /* Space between items */
    margin-bottom: 1.5rem;
}

/* Labels inline with selects/inputs */
.form.filter-form label,
form.filter-form label {
    margin-bottom: 0;
    font-weight: 300;
    white-space: nowrap;
}

/* Compact inputs/selects for desktop */
.form.filter-form select,
.form.filter-form input[type="date"],
.form.filter-form input[type="text"] {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 150px;
    padding: 0.35rem 0.5rem;
    font-size: 0.575rem;
}

/* Buttons in line */
.form.filter-form button {
    flex: 0 0 auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* ================================
   Mobile adjustments
   ================================ */
@media (max-width: 576px) {
    .form.filter-form,
    form.filter-form,
    form.form {
        flex-direction: column; /* Stack vertically on small screens */
        align-items: stretch;
    }

    .form.filter-form select,
    .form.filter-form input,
    .form.filter-form button {
        width: 100%; /* Full width on mobile */
        max-width: none;
    }
}

.clickable-card {
    display: block;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.clickable-card span {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
}

.clickable-card p {
    margin-top: 4px;
}

/* ===============================
   Dashboard Stats + Chart Styling
   =============================== */
.card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.clickable-card {
    color: inherit;
    text-decoration: none;
}

.card h3 {
    font-size: 1.75rem;
}

/* ===============================
   Chart Container
   =============================== */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

#milkTrendChart {
    max-height: 280px;
}

/* ===============================
   Primary Button (Add Daily Record)
   =============================== */
.btn-primary {
    background: linear-gradient(90deg, #2c6e49, #24563a); /* green theme */
    border: none;
    border-radius: 2rem;
    font-weight: 500;
    padding: 1.6rem 2.5rem;
    transition: all 0.2s ease-in-out;
    margin-bottom: 4px;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #24563a, #1d4430);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Card border override */
.card {
    border: 2px solid #2c6e49 !important; /* green border */
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



/* ==== Global Layout ==== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* light gray background */
    color: #212529;
}

/* ==== Card Styling ==== */
.card {
    border-radius: 4rem;
    border: 2px solid #198754; /* green theme border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Titles inside cards */
.card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.card p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Clickable card links */
.clickable-card {
    color: inherit;
    text-decoration: none;
}
.clickable-card:hover {
    text-decoration: none;
    color: #145c32; /* darker green on hover */
}

/* ==== Dashboard Stats ==== */
.stats-row .card {
    padding: 1.25rem;
    text-align: center;
}

/* ==== Chart Container ==== */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

#milkTrendChart {
    max-height: 280px;
}

/* ==== Buttons ==== */
.btn-primary {
    background: linear-gradient(90deg, #2c6e49, #198754);
    border: none;
    border-radius: 2rem;
    font-weight: 500;
    padding: 1.65rem 2.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #198754, #145c32);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Add Record Button (big floating style for dashboard) */
.add-record-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}


/* ==== Forms (Login + Register) ==== */
.form-container {
    max-width: 600px;          /* balanced width (not too wide, not squizzed) */
    margin: 2rem auto;         /* centered with breathing space */
    padding: 0 1rem;           /* small side padding */
}

.form-container .card {
    padding: 2rem 2.5rem;      /* spacious inside */
    border-radius: 1rem;
    border: 1.5px solid #198754; /* green border */
    background-color: #fff;
}

/* Headings */
.form-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #145c32;
    margin-bottom: 1.5rem;
}

/* Labels */
.form-container label {
    font-weight: 500;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    display: block;
    font-size: 0.95rem;
}

/* Inputs */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="number"],
.form-container input[type="tel"],
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #198754;  /* green border */
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #145c32; /* darker green */
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Errors */
.error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
}

/* Buttons */
.form-container .btn-primary {
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.75rem;
    background: linear-gradient(90deg, #2c6e49, #198754);
    border: none;
    transition: all 0.2s ease-in-out;
    width: 100%;
}
.form-container .btn-primary:hover {
    background: linear-gradient(90deg, #198754, #145c32);
    transform: translateY(-2px);
}

/* Toggle password icon (👁️) */
#toggle-password {
    font-size: 1.1rem;
    color: #6c757d;
}
#toggle-password:hover {
    color: #198754;
}

/* ==== Mobile responsiveness ==== */
@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    .form-container .card {
        padding: 1.5rem;
    }
    .form-container h2 {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .form-container input {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    .form-container .btn-primary {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
}

/* Smooth dropdown animations */
.dropdown-menu {
    display: block;              /* ensure it can animate */
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.25s ease-in-out;
    pointer-events: none;        /* prevent hover issues */
}

.dropdown.show > .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-menu .dropdown-menu {
    margin-left: 0.2rem;
    margin-top: 0;
    transition: all 0.25s ease-in-out;
}

/* Mobile-optimized action buttons */
@media (max-width: 576px) {
  .mb-3 a.btn {
    display: block;          /* Full width */
    width: 100%;
    margin-bottom: 10px;     /* Space between buttons */
  }

  .mb-3 a.btn:last-child {
    margin-bottom: 0;        /* Remove extra space at bottom */
  }
}
/* Chart container adjustments */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Make height adaptive */
    height: 80%;          /* Use half of the viewport height on desktop */
    min-height: 250px;     /* Ensure visibility even on small devices */
    max-height: 300px;     /* Prevent chart from being too tall */
    margin: 0 auto;        /* Center inside card */
    padding: 0;            /* Remove inner white space */
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .chart-container {
        height: 100%vh;      /* Slightly smaller for mobile */
        min-height: 140px;
        max-height: 200px;
        
    }
    card .chart-container{
        margin-top:-10px;
        margin-bottom;-50px;
    }
}


/* ===========================
   ✅ Desktop Navigation
   =========================== */
.desktop-nav .nav {
  gap: 1rem;
}

.desktop-nav a,
.desktop-nav .nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
  color: #2e7d32; /* darker green */
  border-bottom: 2px solid #2e7d32;
}

/* Dropdown menu (desktop) */
.navbar .dropdown-menu {
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
}

/* ===========================
   ✅ Mobile Navigation
   =========================== */
.mobile-nav {
  width: 50vw; /* half screen */
  min-width: 220px;
  max-width: 320px;
}

.mobile-nav .dropdown-item {
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  font-weight: 500;
  color: #333;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover + focus highlight */
.mobile-nav .dropdown-item:hover,
.mobile-nav .dropdown-item:focus {
  background-color: #e6f4ea; /* light green */
  color: #2e7d32;
}

/* Active item */
.mobile-nav .dropdown-item.active {
  background-color: #c8e6c9;
  color: #1b5e20;
  font-weight: 600;
}

/* ===========================
   ✅ Mobile Submenus
   =========================== */
.dropdown-submenu {
  position: relative;
}

/* Hidden by default */
.mobile-nav .dropdown-submenu .dropdown-menu {
  max-height: 0;
  overflow: hidden;
  margin-left: 1rem;
  margin-top: 0.25rem;
  border-left: 2px solid #2e7d32;
  border-radius: 6px;
  padding: 0; /* collapsed */
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 0.3s ease, padding 0.3s ease,
              opacity 0.3s ease, transform 0.3s ease;
}

/* Show submenu */
.mobile-nav .dropdown-submenu.show > .dropdown-menu {
  max-height: 500px;
  padding: 0.5rem 0;
  opacity: 1;
  transform: translateY(0);
}

/* Arrow indicator */
.mobile-nav .dropdown-submenu > .dropdown-toggle::after {
  float: right;
  margin-top: 0.3rem;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.mobile-nav .dropdown-submenu.show > .dropdown-toggle::after {
  transform: rotate(270deg);
}
