
/* =========================================================
   SMART NURSERY TRACKING
   DASHBOARD STYLES
========================================================= */

.dashboard-page {
    margin: 0;
    background: #f8faf7;
    color: #334155;
    font-family: "Inter", sans-serif;
}

.dashboard-page * {
    box-sizing: border-box;
}


/* =========================================================
   SIDEBAR
========================================================= */

.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;

    background: #ffffff;
    border-right: 1px solid #e5ebe7;

    display: flex;
    flex-direction: column;

    z-index: 1000;
}


.sidebar-header {
    height: 90px;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eef2ef;
}


.sidebar-logo img {
    width: 165px;
    height: auto;
    display: block;
}


.sidebar-close {
    display: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.sidebar-navigation {
    padding: 28px 15px;
    flex: 1;
    overflow-y: auto;
}


.nav-section-title {
    margin: 0 12px 12px;

    color: #9aa59f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.secondary-nav-title {
    margin-top: 30px;
}


.nav-item {
    position: relative;

    min-height: 45px;

    margin-bottom: 5px;
    padding: 0 13px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 9px;

    color: #64748b;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition: 0.2s ease;
}


.nav-item:hover {
    background: #f1f8f3;
    color: #14532d;
}


.nav-item.active {
    background: #ecfdf3;
    color: #14532d;
}


.nav-item.active::before {
    content: "";

    position: absolute;
    left: 0;

    width: 3px;
    height: 22px;

    border-radius: 0 4px 4px 0;

    background: #16a34a;
}


.nav-icon {
    width: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    padding: 15px;
    border-top: 1px solid #eef2ef;
}


.sidebar-help {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;
    padding: 12px;

    border-radius: 9px;

    background: #f7faf8;
}


.help-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcfce7;
    color: #15803d;

    font-size: 12px;
    font-weight: 800;
}


.sidebar-help strong {
    display: block;

    color: #334155;

    font-size: 11px;
}


.sidebar-help span {
    display: block;

    margin-top: 2px;

    color: #94a3a0;

    font-size: 9px;
}


.logout-button {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 13px;

    border-radius: 8px;

    color: #64748b;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition: 0.2s ease;
}


.logout-button:hover {
    background: #fff5f5;
    color: #dc2626;
}


/* =========================================================
   MAIN
========================================================= */

.dashboard-main {
    margin-left: 250px;
    min-height: 100vh;
}


/* =========================================================
   TOPBAR
========================================================= */

.dashboard-topbar {
    height: 90px;

    padding: 0 35px;

    background: #ffffff;
    border-bottom: 1px solid #e8eee9;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}


.topbar-left {
    gap: 15px;
}


.topbar-label {
    margin: 0 0 4px;

    color: #16a34a;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.topbar-left h1 {
    margin: 0;

    color: #17261d;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


.mobile-menu-button {
    display: none;

    width: 38px;
    height: 38px;

    border: 1px solid #e1e9e3;
    border-radius: 8px;

    background: #ffffff;
    color: #14532d;

    cursor: pointer;
}


/* =========================================================
   TOPBAR RIGHT
========================================================= */

.topbar-right {
    gap: 18px;
}


.dashboard-search {
    width: 190px;
    height: 38px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 12px;

    border: 1px solid #e2e9e4;
    border-radius: 8px;

    background: #f9fbfa;
}


.dashboard-search span {
    color: #94a3a0;
    font-size: 17px;
}


.dashboard-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #334155;

    font-family: inherit;
    font-size: 11px;
}


.dashboard-search input::placeholder {
    color: #a6b0aa;
}


.notification-button {
    position: relative;

    width: 38px;
    height: 38px;

    border: 1px solid #e2e9e4;
    border-radius: 8px;

    background: #ffffff;

    color: #64748b;

    cursor: pointer;
}


.notification-button i {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #ef4444;
}


.dashboard-profile {
    border: 0;
    background: transparent;

    display: flex;
    align-items: center;
    gap: 9px;

    cursor: pointer;
}


.profile-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #14532d;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}


.profile-info {
    text-align: left;
}


.profile-info strong {
    display: block;

    color: #334155;

    font-size: 11px;
}


.profile-info span {
    display: block;

    margin-top: 2px;

    color: #94a3a0;

    font-size: 9px;
}


.profile-arrow {
    color: #94a3a0;
    font-size: 15px;
}


/* =========================================================
   CONTENT
========================================================= */

.dashboard-content {
    padding: 35px;
}


.dashboard-welcome {
    margin-bottom: 28px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}


.welcome-label {
    color: #16a34a;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.dashboard-welcome h2 {
    margin: 7px 0 5px;

    color: #17261d;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.7px;
}


.dashboard-welcome p {
    margin: 0;

    color: #84908a;

    font-size: 12px;
}


.primary-action {
    height: 40px;

    padding: 0 17px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 0;
    border-radius: 8px;

    background: #14532d;
    color: #ffffff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.primary-action:hover {
    background: #16a34a;
}


/* =========================================================
   STATISTICS
========================================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-bottom: 20px;
}


.stat-card {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e8eee9;
    border-radius: 11px;
}


.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


.stat-label {
    color: #8b9690;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}


.stat-card h3 {
    margin: 9px 0 0;

    color: #17261d;

    font-size: 27px;
    line-height: 1;

    font-weight: 800;
}


.stat-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 16px;
}


.stat-icon.green {
    background: #dcfce7;
}


.stat-icon.blue {
    background: #e0f2fe;
}


.stat-icon.brown {
    background: #f3e8df;
}


.stat-icon.orange {
    background: #fef3c7;
}


.stat-footer {
    margin-top: 18px;

    display: flex;
    gap: 6px;

    color: #a0aaa4;

    font-size: 9px;
}


.stat-positive {
    color: #16a34a;
    font-weight: 700;
}


/* =========================================================
   CARDS
========================================================= */

.dashboard-card {
    background: #ffffff;

    border: 1px solid #e8eee9;
    border-radius: 11px;

    padding: 22px;
}


.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 20px;

    margin-bottom: 20px;
}


.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 25px;
}


.card-label {
    display: block;

    margin-bottom: 6px;

    color: #16a34a;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


.card-header h3 {
    margin: 0;

    color: #17261d;

    font-size: 15px;
    font-weight: 800;
}


.card-header a {
    color: #16a34a;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
}


.card-header a:hover {
    text-decoration: underline;
}


.period-select {
    height: 31px;

    padding: 0 9px;

    border: 1px solid #e1e8e3;
    border-radius: 6px;

    background: #ffffff;

    color: #64748b;

    font-family: inherit;
    font-size: 9px;

    outline: none;
}


/* =========================================================
   GROWTH CHART
========================================================= */

.growth-chart {
    height: 245px;

    display: flex;
    gap: 12px;
}


.chart-y-axis {
    width: 35px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 25px;

    color: #a4ada8;

    font-size: 8px;
    text-align: right;
}


.chart-area {
    position: relative;

    flex: 1;

    padding-bottom: 25px;
}


.chart-grid-line {
    position: relative;

    height: 25%;

    border-top: 1px dashed #e9eeeb;
}


.growth-line {
    position: absolute;

    inset: 0 0 25px 0;

    width: 100%;
    height: calc(100% - 25px);

    overflow: visible;
}


.growth-area-path {
    fill: url(#growthFill);
}


.growth-line-path {
    fill: none;

    stroke: #16a34a;

    stroke-width: 3;

    vector-effect: non-scaling-stroke;
}


.chart-months {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    justify-content: space-between;

    color: #a4ada8;

    font-size: 8px;
}


/* =========================================================
   HEALTH
========================================================= */

.health-content {
    min-height: 245px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
}


.health-ring {
    width: 145px;
    height: 145px;

    border-radius: 50%;

    background:
        conic-gradient(
            #16a34a 0deg 313deg,
            #e2e8e4 313deg 360deg
        );

    display: flex;
    align-items: center;
    justify-content: center;

    background:
    conic-gradient(
        var(--primary-green, #2e7d32)
        0% var(--health-percentage, 0%),
        #e8eee9 var(--health-percentage, 0%) 100%
    );
}


.health-ring-inner {
    width: 111px;
    height: 111px;

    border-radius: 50%;

    background: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.health-ring-inner strong {
    color: #17261d;
    font-size: 22px;
    font-weight: 800;
}


.health-ring-inner span {
    margin-top: 4px;

    color: #94a3a0;
    font-size: 9px;
}


.health-legend {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


.health-legend > div {
    display: flex;
    align-items: center;
    gap: 9px;
}


.legend-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}


.legend-dot.healthy {
    background: #16a34a;
}


.legend-dot.warning {
    background: #f59e0b;
}


.legend-dot.critical {
    background: #ef4444;
}


.health-legend strong {
    display: block;

    color: #475569;

    font-size: 10px;
}


.health-legend span:last-child {
    display: block;

    margin-top: 3px;

    color: #94a3a0;

    font-size: 9px;
}


/* =========================================================
   BOTTOM GRID
========================================================= */

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 20px;
}


.activity-list {
    display: flex;
    flex-direction: column;
}


.activity-item {
    min-height: 62px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid #f0f3f1;
}


.activity-item:last-child {
    border-bottom: 0;
}


.activity-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 13px;
}


.activity-icon.seedling {
    background: #dcfce7;
}


.activity-icon.growth {
    background: #e0f2fe;
}


.activity-icon.warning {
    background: #fef3c7;
}


.activity-icon.report {
    background: #f1f5f9;
}


.activity-details {
    flex: 1;
}


.activity-details strong {
    display: block;

    color: #475569;

    font-size: 10px;
}


.activity-details span {
    display: block;

    margin-top: 4px;

    color: #9aa59f;

    font-size: 8px;
}


.activity-status {
    color: #94a3a0;

    font-size: 8px;
    font-weight: 700;
}


.activity-status.success {
    color: #16a34a;
}


.activity-status.warning {
    color: #d97706;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {
    display: flex;
    flex-direction: column;
}


.quick-action {
    min-height: 57px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-bottom: 1px solid #f0f3f1;

    text-decoration: none;
}


.quick-action:last-child {
    border-bottom: 0;
}


.quick-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 12px;
}


.quick-icon.green {
    background: #dcfce7;
}


.quick-icon.blue {
    background: #e0f2fe;
}


.quick-icon.brown {
    background: #f3e8df;
}


.quick-icon.purple {
    background: #f3e8ff;
}


.quick-action div {
    flex: 1;
}


.quick-action strong {
    display: block;

    color: #475569;

    font-size: 10px;
}


.quick-action div span {
    display: block;

    margin-top: 3px;

    color: #9aa59f;

    font-size: 8px;
}


.quick-action b {
    color: #a0aaa4;

    font-size: 15px;

    transition: 0.2s ease;
}


.quick-action:hover b {
    color: #16a34a;
    transform: translateX(3px);
}


/* =========================================================
   FOOTER
========================================================= */

.dashboard-footer {
    margin-top: 25px;
    padding: 5px 2px 15px;

    display: flex;
    justify-content: space-between;

    color: #a4ada8;

    font-size: 8px;
}


/* =========================================================
   SIDEBAR OVERLAY
========================================================= */

.sidebar-overlay {
    display: none;
}


/* =========================================================
   RESPONSIVE DASHBOARD
========================================================= */

@media (max-width: 1150px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 900px) {

    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-close {
        display: flex;

        width: 30px;
        height: 30px;

        align-items: center;
        justify-content: center;

        border: 0;
        border-radius: 6px;

        background: #f1f5f2;

        color: #64748b;

        cursor: pointer;

        font-size: 20px;
    }

    .sidebar-overlay.show {
        display: block;

        position: fixed;
        inset: 0;

        background: rgba(15, 23, 42, 0.35);

        z-index: 900;
    }

    .dashboard-search {
        display: none;
    }

}


@media (max-width: 650px) {

    .dashboard-topbar {
        height: 75px;
        padding: 0 18px;
    }

    .dashboard-content {
        padding: 25px 18px;
    }

    .topbar-label {
        font-size: 7px;
    }

    .topbar-left h1 {
        font-size: 19px;
    }

    .profile-info,
    .profile-arrow {
        display: none;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .dashboard-welcome h2 {
        font-size: 21px;
    }

    .primary-action {
        width: 100%;
        justify-content: center;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 22px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .stat-footer {
        flex-wrap: wrap;
    }

    .dashboard-card {
        padding: 17px;
    }

    .health-content {
        flex-direction: column;
        gap: 25px;
        padding: 10px 0 20px;
    }

    .health-legend {
        width: 100%;
    }

    .dashboard-footer {
        flex-direction: column;
        gap: 7px;
    }

}


@media (max-width: 430px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        padding: 0 14px;
    }

    .dashboard-content {
        padding: 22px 14px;
    }

    .dashboard-profile {
        display: none;
    }

    .card-header {
        gap: 10px;
    }

    .period-select {
        max-width: 105px;
    }

}

/* =========================================================
   SETTINGS PAGE
========================================================= */

.settings-intro {
    margin-bottom: 28px;
}

.settings-intro h2 {
    margin: 7px 0 5px;

    color: #17261d;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.7px;
}

.settings-intro p {
    margin: 0;

    color: #84908a;

    font-size: 12px;
}


/* =========================================================
   SETTINGS LAYOUT
========================================================= */

.settings-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}


/* =========================================================
   SETTINGS MENU
========================================================= */

.settings-menu {
    padding: 8px;

    background: #ffffff;

    border: 1px solid #e8eee9;
    border-radius: 11px;
}


.settings-menu-item {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 12px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #64748b;

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition: 0.2s ease;
}


.settings-menu-item span {
    width: 18px;

    color: #94a3a0;

    text-align: center;
}


.settings-menu-item:hover {
    background: #f1f8f3;
    color: #14532d;
}


.settings-menu-item.active {
    background: #ecfdf3;
    color: #14532d;
}


.settings-menu-item.active span {
    color: #16a34a;
}


/* =========================================================
   SETTINGS PANEL
========================================================= */

.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.settings-section {
    padding: 25px;

    background: #ffffff;

    border: 1px solid #e8eee9;
    border-radius: 11px;
}


.settings-section-heading {
    margin-bottom: 25px;
}


.settings-section-heading h3 {
    margin: 0 0 6px;

    color: #17261d;

    font-size: 16px;
    font-weight: 800;
}


.settings-section-heading p {
    margin: 0;

    color: #94a3a0;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   PROFILE
========================================================= */

.settings-profile {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-bottom: 25px;
    margin-bottom: 25px;

    border-bottom: 1px solid #eef2ef;
}


.large-profile-avatar {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #14532d;
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


.settings-profile strong {
    display: block;

    color: #334155;

    font-size: 12px;
}


.settings-profile span {
    display: block;

    margin-top: 4px;

    color: #94a3a0;

    font-size: 9px;
}


.change-photo {
    margin-top: 7px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #16a34a;

    font-family: inherit;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   SETTINGS FORM
========================================================= */

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.settings-form-group label {
    color: #475569;

    font-size: 10px;
    font-weight: 600;
}


.settings-form-group input,
.settings-form-group select {
    width: 100%;
    height: 43px;

    padding: 0 12px;

    border: 1px solid #dfe7e1;
    border-radius: 7px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;
    font-size: 10px;

    transition: 0.2s ease;
}


.settings-form-group input:focus,
.settings-form-group select:focus {
    border-color: #16a34a;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.07);
}


/* =========================================================
   SETTINGS ACTIONS
========================================================= */

.settings-actions {
    margin-top: 22px;

    display: flex;
    justify-content: flex-end;
    gap: 9px;
}


.secondary-button,
.save-button,
.outline-button {
    height: 37px;

    padding: 0 14px;

    border-radius: 7px;

    font-family: inherit;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.secondary-button {
    border: 1px solid #dfe7e1;
    background: #ffffff;
    color: #64748b;
}


.secondary-button:hover {
    background: #f8faf7;
}


.save-button {
    border: 0;
    background: #14532d;
    color: #ffffff;
}


.save-button:hover {
    background: #16a34a;
}


.outline-button {
    border: 1px solid #d8e2db;
    background: #ffffff;
    color: #14532d;
}


.outline-button:hover {
    border-color: #16a34a;
    background: #f0fdf4;
}


/* =========================================================
   SECURITY / NOTIFICATION ROWS
========================================================= */

.security-row,
.notification-setting {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid #eef2ef;
}


.security-row:last-child,
.notification-setting:last-child {
    border-bottom: 0;
}


.security-row strong,
.notification-setting strong {
    display: block;

    color: #475569;

    font-size: 10px;
}


.security-row span,
.notification-setting span {
    display: block;

    margin-top: 4px;

    color: #9aa59f;

    font-size: 8px;
}


/* =========================================================
   TOGGLE
========================================================= */

.toggle {
    position: relative;

    width: 36px;
    height: 20px;

    flex-shrink: 0;

    cursor: pointer;
}


.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}


.toggle-slider {
    position: absolute;
    inset: 0;

    border-radius: 20px;

    background: #dce4de;

    transition: 0.2s ease;
}


.toggle-slider::before {
    content: "";

    position: absolute;

    width: 14px;
    height: 14px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 1px 3px rgba(0,0,0,0.12);

    transition: 0.2s ease;
}


.toggle input:checked + .toggle-slider {
    background: #16a34a;
}


.toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* =========================================================
   SETTINGS RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

}


@media (max-width: 500px) {

    .settings-intro h2 {
        font-size: 21px;
    }

    .settings-section {
        padding: 18px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-menu {
        grid-template-columns: 1fr 1fr;
    }

    .settings-menu-item {
        font-size: 9px;
    }

    .security-row,
    .notification-setting {
        align-items: flex-start;
        padding: 15px 0;
    }

    .settings-actions {
        width: 100%;
    }

    .secondary-button,
    .save-button {
        flex: 1;
    }

}

.dashboard-export-button {
    border: 1px solid #d7e1db;
    background: #ffffff;
    color: #1f7a4d;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.dashboard-export-button:hover {
    background: #f0f8f3;
    border-color: #1f7a4d;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border: 1px solid #d7e1db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f7a4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.dashboard-export-button:hover {
    background: #f0f8f3;
    border-color: #1f7a4d;
}

.dashboard-export-button span {
    font-size: 16px;
}

/* =========================================================
   SMART NURSERY TRACKING
   GLOBAL HEADER FUNCTIONALITY
========================================================= */


/* =========================================================
   PROFILE DROPDOWN
========================================================= */

.snt-profile-dropdown {
    position: fixed;
    width: 260px;

    background: #ffffff;

    border: 1px solid #e7e9ec;

    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12);

    padding: 8px;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.snt-profile-dropdown.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}


/* =========================================================
   PROFILE DROPDOWN HEADER
========================================================= */

.snt-profile-dropdown-header {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

}


.snt-dropdown-avatar {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #1f7a4d;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 13px;

    font-weight: 700;

    flex-shrink: 0;

}


.snt-profile-dropdown-header > div:last-child {

    min-width: 0;

    display: flex;

    flex-direction: column;

}


.snt-profile-dropdown-header strong {

    color: #17211b;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.snt-profile-dropdown-header span {

    margin-top: 3px;

    color: #7a837d;

    font-size: 12px;

}


/* =========================================================
   DIVIDER
========================================================= */

.snt-dropdown-divider {

    height: 1px;

    background: #eef0ee;

    margin: 5px 4px;

}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.snt-dropdown-item {

    display: flex;

    align-items: center;

    gap: 11px;

    width: 100%;

    padding: 11px 12px;

    border-radius: 9px;

    color: #303832;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    transition:
        background 0.18s ease,
        color 0.18s ease;

}


.snt-dropdown-item span:first-child {

    width: 20px;

    text-align: center;

    font-size: 15px;

}


.snt-dropdown-item:hover {

    background: #f2f8f4;

    color: #1f7a4d;

}


.snt-logout-item {

    color: #c53d3d;

}


.snt-logout-item:hover {

    background: #fff2f2;

    color: #b52f2f;

}


/* =========================================================
   NOTIFICATION PANEL
========================================================= */

.snt-notification-panel {

    position: fixed;

    width: 350px;

    max-width:
        calc(100vw - 30px);

    background: #ffffff;

    border: 1px solid #e7e9ec;

    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12);

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

}


.snt-notification-panel.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* =========================================================
   NOTIFICATION HEADER
========================================================= */

.snt-notification-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px;

    border-bottom:
        1px solid #eef0ee;

}


.snt-notification-header > div {

    display: flex;

    flex-direction: column;

}


.snt-notification-header strong {

    color: #17211b;

    font-size: 15px;

    font-weight: 700;

}


.snt-notification-header span {

    margin-top: 3px;

    color: #858d87;

    font-size: 11px;

}


.snt-notification-close {

    width: 30px;

    height: 30px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #737b76;

    font-size: 20px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

}


.snt-notification-close:hover {

    background: #f3f5f3;

    color: #222;

}


/* =========================================================
   NOTIFICATION LIST
========================================================= */

.snt-notification-list {

    max-height: 350px;

    overflow-y: auto;

}


.snt-notification-item {

    display: flex;

    gap: 12px;

    padding: 14px 16px;

    border-bottom:
        1px solid #f0f2f0;

    transition:
        background 0.18s ease;

}


.snt-notification-item:last-child {

    border-bottom: none;

}


.snt-notification-item:hover {

    background: #fafcfb;

}


.snt-notification-icon {

    width: 34px;

    height: 34px;

    border-radius: 9px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    font-weight: 700;

}


.snt-notification-item > div:last-child {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.snt-notification-item strong {

    color: #263029;

    font-size: 12px;

    line-height: 1.4;

}


.snt-notification-item span {

    color: #858d87;

    font-size: 11px;

    line-height: 1.4;

}


/* =========================================================
   NOTIFICATION TYPES
========================================================= */

.snt-notification-item.critical
.snt-notification-icon {

    background: #fff0f0;

    color: #c53d3d;

}


.snt-notification-item.warning
.snt-notification-icon {

    background: #fff7e8;

    color: #c88419;

}


.snt-notification-item.success
.snt-notification-icon {

    background: #edf8f1;

    color: #27804f;

}


/* =========================================================
   NOTIFICATION BADGE
========================================================= */

.snt-notification-badge {

    position: absolute;

    top: 2px;

    right: 2px;

    min-width: 17px;

    height: 17px;

    padding: 0 4px;

    border-radius: 50px;

    background: #d63f3f;

    color: #ffffff;

    border: 2px solid #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 8px;

    line-height: 1;

    font-weight: 700;

    pointer-events: none;

}


/* =========================================================
   SEARCH RESULTS
========================================================= */

.dashboard-search {

    position: relative;

}


.snt-search-results {

    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    width: 300px;

    max-width:
        calc(100vw - 30px);

    background: #ffffff;

    border: 1px solid #e7e9ec;

    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.11);

    padding: 6px;

    z-index: 9998;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

}


.snt-search-results.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* =========================================================
   SEARCH RESULT
========================================================= */

.snt-search-result {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 10px 11px;

    border-radius: 8px;

    text-decoration: none;

    transition:
        background 0.18s ease;

}


.snt-search-result:hover {

    background: #f2f8f4;

}


.snt-search-result strong {

    color: #263029;

    font-size: 12px;

    font-weight: 700;

}


.snt-search-result span {

    color: #858d87;

    font-size: 10px;

}


.snt-search-empty {

    padding: 14px;

    text-align: center;

    color: #858d87;

    font-size: 12px;

}


/* =========================================================
   NOTIFICATION BUTTON
========================================================= */

.notification-button {

    position: relative;

}


/* =========================================================
   PROFILE BUTTON
========================================================= */

.dashboard-profile {

    cursor: pointer;

}


.dashboard-profile:focus-visible,
.notification-button:focus-visible {

    outline: 2px solid #2f8f5b;

    outline-offset: 2px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .snt-profile-dropdown {

        width: 245px;

        max-width:
            calc(100vw - 20px);

    }


    .snt-notification-panel {

        width: 330px;

        max-width:
            calc(100vw - 20px);

    }


    .snt-search-results {

        width: 280px;

    }

}


@media (max-width: 480px) {

    .snt-profile-dropdown {

        max-width:
            calc(100vw - 20px);

    }


    .snt-notification-panel {

        left: 10px !important;

        right: 10px !important;

        width: auto;

        max-width: none;

    }


    .snt-search-results {

        left: auto;

        right: 0;

        width: 270px;

    }

}