@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Lora:wght@400;700&display=swap);

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Inter, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif
}

body {
    background: #919394;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    overflow-x: auto
}

:root {
    --color-bg: #f8f6f2;
    --color-primary: #1f6f4f;
    --color-accent: #c49a5a;
    --color-muted: #6b6b6b;
    --color-surface: #fff;
    --color-border: #e6dfd6;
    --text-dark: #1b1b1b;
    --sidebar-width: 280px;
    --font-heading: "Lora", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial
}

.text-center {
    text-align: center
}

.text-left {
    text-align: left
}

.text-right {
    text-align: right
}

.mt-1 {
    margin-top: .25rem
}

.mt-2 {
    margin-top: .5rem
}

.mt-3 {
    margin-top: .75rem
}

.mt-4 {
    margin-top: 1rem
}

.mb-1 {
    margin-bottom: .25rem
}

.mb-2 {
    margin-bottom: .5rem
}

.mb-3 {
    margin-bottom: .75rem
}

.mb-4 {
    margin-bottom: 1rem
}

.p-1 {
    padding: .25rem
}

.p-2 {
    padding: .5rem
}

.p-3 {
    padding: .75rem
}

.p-4 {
    padding: 1rem
}

.flex {
    display: flex
}

.flex-col {
    flex-direction: column
}

.items-center {
    align-items: center
}

.justify-center {
    justify-content: center
}

.justify-between {
    justify-content: space-between
}

.w-full {
    width: 100%
}

.h-full {
    height: 100%
}

.rounded {
    border-radius: .25rem
}

.rounded-md {
    border-radius: .375rem
}

.rounded-lg {
    border-radius: .5rem
}

.rounded-xl {
    border-radius: .75rem
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06)
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06)
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05)
}

.bg-white {
    background-color: #9b9898
}

.bg-gray-50 {
    background-color: #4c9949
}

.bg-gray-100 {
    background-color: #2b702f
}

.bg-blue-500 {
    background-color: #25a054
}

.bg-blue-600 {
    background-color: #094613
}

.text-gray-600 {
    color: #4b5563
}

.text-gray-700 {
    color: #374151
}

.text-gray-900 {
    color: #111827
}

.text-blue-600 {
    color: #2563eb
}

.text-white {
    color: #fff
}

.border {
    border-width: 1px
}

.border-gray-200 {
    border-color: #e5e7eb
}

.border-gray-300 {
    border-color: #d1d5db
}

.transition {
    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter
}

.duration-150 {
    transition-duration: .15s
}

.duration-200 {
    transition-duration: .2s
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6
}

.hover\:bg-blue-600:hover {
    background-color: #083f1a
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}

.focus\:ring-blue-500:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgba(59, 130, 246, var(--tw-ring-opacity))
}

.disabled\:opacity-50:disabled {
    opacity: .5
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed
}

.animate-spin {
    animation: spin 1s linear infinite
}

@keyframes bounce {

    0%,
    to {
        animation-timing-function: cubic-bezier(.8, 0, 1, 1);
        transform: translateY(-25%)
    }

    50% {
        animation-timing-function: cubic-bezier(0, 0, .2, 1);
        transform: none
    }
}

.animate-bounce {
    animation: bounce 1s infinite
}

@media (max-width:768px) {
    .mobile-hidden {
        display: none
    }

    .mobile-flex {
        display: flex
    }
}

@media (min-width:769px) {
    .desktop-hidden {
        display: none
    }
}

::-webkit-scrollbar {
    height: 2%;
    width: 12px
}

::-webkit-scrollbar-track {
    background: #ffffff00
}

::-webkit-scrollbar-thumb {
    background: #5882dd04;
    border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
    background: #06441549
}

button,
input,
select,
textarea {
    font-family: inherit
}

button {
    cursor: pointer
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px
}

.calendar-card {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 8px;
    box-shadow: 0 6px 18px #389139;
    padding: 1rem;
    width: 100vw
}

.calendar-visual {
    box-sizing: border-box;
    padding: .75rem;
    width: 100vw
}

.calendar-visual.card {
    box-sizing: border-box;
    max-width: calc(100vw - 328px) !important;
    max-width: calc(100vw - var(--sidebar-width) - 48px) !important;
    padding: .75rem 24px;
    width: calc(100vw - 328px) !important;
    width: calc(100vw - var(--sidebar-width) - 48px) !important
}

.calendar-grid-wrap {
    max-width: none;
    padding: 0 24px
}

.event-list li {
    border-radius: 6px;
    display: block;
    padding: .75rem;
    transition: background-color .12s ease, transform .12s ease
}

.event-list li:hover {
    background: #f3f8ff;
    transform: translateY(-1px)
}

.event-title {
    color: #0b3307;
    font-weight: 600
}

.event-meta {
    color: #475569;
    font-size: .9rem
}

.small-muted {
    color: #6b7280;
    font-size: .85rem
}

.btn {
    background: var(--theme-blue);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(13, 70, 8, 0.945);
    color: #fff;
    padding: .4rem .7rem
}

.btn.secondary {
    background: #eef2ff;
    border: 1px solid #e6eefc;
    color: #389139
}

.signin-refresh-widget .btn {
    background: #1f6f4f;
    background: var(--color-primary);
    border: none;
    box-shadow: 0 4px 10px rgba(31, 111, 79, .12);
    color: #fff
}

.signin-refresh-widget .btn:hover {
    background: #134d39
}

.signin-refresh-widget .btn.secondary {
    background: #eaf6ef;
    border: 1px solid rgba(31, 111, 79, .12);
    box-shadow: none;
    color: #1f6f4f;
    color: var(--color-primary)
}

.signin-refresh-widget .fancy-toggle,
.signin-refresh-widget .signin-refresh-toggle {
    align-items: center;
    display: inline-flex
}

.signin-refresh-widget .fancy-toggle {
    border-radius: 999px;
    color: #fff;
    height: 22px;
    justify-content: center;
    padding: 2px;
    width: 40px
}

.signin-refresh-widget .fancy-toggle.on {
    background: #1f6f4f;
    background: var(--color-primary)
}

.signin-refresh-widget .fancy-toggle.off {
    background: #eaf6ef;
    color: #1f6f4f;
    color: var(--color-primary)
}

.signin-refresh-widget .toggle-circle {
    font-size: .9rem
}

.signin-refresh-widget .signin-refresh-caret {
    background: transparent;
    border: 1px solid #1f6f4f;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    color: #1f6f4f;
    color: var(--color-primary);
    padding: 6px
}

.signin-refresh-widget .signin-refresh-controls {
    align-items: center;
    display: flex;
    gap: 6px
}

.signin-refresh-widget .signin-refresh-caret {
    align-items: center;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px
}

.signin-refresh-widget .signin-refresh-caret:hover {
    background: rgba(31, 111, 79, .06)
}

.toggle-label {
    align-items: center;
    color: #0f4707;
    display: inline-flex;
    font-size: .95rem;
    gap: .4rem
}

.last-refreshed {
    color: #94a3b8;
    font-size: .85rem
}

.page-header {
    background: linear-gradient(180deg, #fff, #f7fbff);
    border-bottom: 1px solid #e6edf3;
    padding: 1rem .5rem
}

.page-header .header-inner {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: 0 auto;
    max-width: 1600px
}

.page-header h1 {
    color: #0f2a11;
    font-size: 1.5rem
}

.page-header .muted {
    color: #6b7280;
    font-size: .95rem
}

.page-main {
    padding: 1.25rem .75rem
}

.content-wrap {
    grid-gap: 1.25rem;
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 360px;
    margin: 0
}

.content-wrap,
.content-wrap>.card {
    max-width: none;
    width: 100%
}

.calendar-visual.card {
    max-width: none !important;
    width: 100% !important
}

.events-card.card {
    color: #389139;
    max-width: 420px;
    width: 100%
}

@media (max-width:900px) {
    .content-wrap {
        grid-template-columns: 1fr
    }

    .events-card.card {
        max-width: none;
        width: 100%
    }
}

.calendar-visual {
    align-items: stretch;
    background: linear-gradient(180deg, rgba(243, 249, 255, .6), hsla(0, 0%, 100%, .2));
    display: flex;
    justify-content: center;
    padding: .75rem 0
}

.calendar-grid-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: calc(100% - 280px);
    max-width: calc(100% - var(--sidebar-width));
    padding: 0;
    width: 100%
}

.calendar-grid-wrap .fc-root {
    max-width: none;
    width: 100%
}

.calendar-grid-wrap .fc-root .fc,
.calendar-grid-wrap .fc-root>.fc {
    max-width: none !important;
    width: 100% !important
}

.calendar-grid-wrap .fc .fc-scrollgrid,
.calendar-grid-wrap .fc .fc-scrollgrid>div {
    width: 100% !important
}

.calendar-visual {
    overflow-x: visible
}

.fc-root {
    width: 100%
}

.events-header {
    color: #389139;
    display: flex;
    font-size: .9rem;
    font-weight: 600;
    justify-content: space-between;
    margin-bottom: .5rem
}

.controls-row {
    background: linear-gradient(180deg, #389139, #389139);
    border-radius: 6px;
    color: #052911;
    gap: .5rem;
    padding: 6px 8px
}

.toggle-wrap {
    align-items: center;
    display: flex
}

.fancy-toggle {
    cursor: pointer;
    outline: none;
    -webkit-user-select: none;
    user-select: none
}

.fancy-toggle,
.fancy-toggle .toggle-circle {
    align-items: center;
    display: inline-flex;
    justify-content: center
}

.fancy-toggle .toggle-circle {
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
    font-size: 18px;
    height: 42px;
    transition: transform .16s ease, box-shadow .16s ease, background .2s ease;
    width: 42px
}

.fancy-toggle.on .toggle-circle {
    background: linear-gradient(135deg, rgba(59, 130, 246, .95), rgba(96, 165, 250, .9));
    box-shadow: 0 6px 14px rgba(59, 130, 246, .08);
    transform: translateY(-1px)
}

@media (max-width:900px) {

    .content-wrap,
    .page-header .header-inner {
        padding: 0 .5rem
    }

    .calendar-grid-wrap {
        max-width: 100%
    }

    .controls-row {
        flex-wrap: wrap;
        gap: .4rem
    }
}

@media (max-width:480px) {
    .page-header h1 {
        font-size: 1.25rem
    }

    .events-header h3 {
        font-size: 1rem
    }

    .btn {
        padding: .35rem .5rem
    }
}

.fc,
.fc-root .fc {
    --fc-bg-color: #389139;
    --fc-border-color: #eef6fc;
    --fc-text-color: #fff
}

.fc .fc-toolbar {
    background: transparent;
    padding: .5rem 0
}

.fc {
    font-size: 12px
}

.fc .fc-button {
    background: linear-gradient(180deg, rgb(14, 82, 7), rgb(11, 94, 11));
    border: 1px solid rgb(10, 85, 23);
    box-shadow: none;
    color: #389139
}

.fc .fc-button:hover {
    background: linear-gradient(180deg, #f0f6ff, #e8f2ff)
}

.fc .fc-button.fc-button-primary,
.fc .fc-button:active,
.fc .fc-button:focus {
    background: linear-gradient(180deg, #389139, #389139);
    border-color: rgba(59, 130, 246, .18);
    color: #071033
}

.fc .fc-toolbar-title {
    background: var(--theme-blue);
    border-color: #265f27
}

.fc .fc-toolbar-title,
.fc-toolbar-chunk {
    border-radius: .5rem;
    box-shadow: 0 6px 14px rgb(5, 71, 9);
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: .25rem .75rem
}

.fc-toolbar-chunk {
    background: #389139
}

.fc .fc-col-header-cell {
    background: transparent;
    color: #244124
}

.fc .fc-daygrid-event:hover {
    background: linear-gradient(180deg, #ddeffd, #eef7ff)
}

.fc .fc-timegrid-event {
    background: linear-gradient(180deg, #eef7ff, #fbfdff);
    border-left: 4px solid #568666c9
}

.fc .fc-daygrid-event.fc-event-draggable:hover,
.fc .fc-list-event:hover {
    transform: translateY(-1px)
}

.fc .fc-daygrid-day {
    background: transparent;
    border: 1px solid rgba(14, 77, 22, 0.432);
    min-width: 170px
}

.fc .fc-daygrid-day-frame {
    padding: 8px
}

.fc .fc-scrollgrid-section .fc-scrollgrid-section>div {
    min-width: 100% !important
}

.fc .fc-daygrid-day-top {
    align-items: center;
    display: flex;
    justify-content: flex-start
}

.fc .fc-daygrid-day-number {
    border-radius: 6px;
    color: #243041;
    font-weight: 600;
    padding: 4px 6px
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: linear-gradient(180deg, rgba(59, 130, 246, .12), rgba(59, 130, 246, .06));
    color: #389139
}

.fc .fc-daygrid-event {
    background: linear-gradient(180deg, rgb(2, 109, 2), hsla(0, 0%, 100%, .85));
    border-left: 4px solid var(--theme-blue);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgb(0, 66, 11);
    font-size: .8rem;
    line-height: 1.15;
    margin: 3px 0;
    padding: 4px 6px
}

.fc .fc-event-main {
    color: #000000;
    font-weight: 600
}

.fc .fc-event-time {
    color: #094b14;
    font-weight: 500;
    margin-right: 6px
}

.fc .fc-list-heading td {
    background: transparent;
    color: #0e3307;
    font-weight: 600
}

.fc .fc-scrollgrid-section .fc-scrollgrid-section>div {
    background: transparent
}

.fc .fc-daygrid-day-frame {
    min-height: 84px;
    padding: 8px 8px 12px
}

.fc .fc-button:active,
.fc .fc-button:focus {
    box-shadow: 0 4px 10px #389139;
    outline: none
}

.main-content {
    margin-left: var(0 0) !important;
    padding-right: 0 !important
}

.page-container {
    align-items: normal !important;
    transform: none !important
}

.dashboard-grid,
.page-header,
.stats-grid {
    max-width: none !important;
    transform: none !important
}

.card,
.content-wrap>.card {
    max-width: none !important
}

.events-card.card {
    max-width: 420px !important
}

@media (max-width:900px) {
    .main-content {
        margin-left: 0 !important
    }

    .page-container {
        padding: 0 .5rem !important
    }

    .content-wrap {
        grid-template-columns: 1fr !important
    }

    .events-card.card {
        max-width: none !important
    }
}

.calendar-grid-wrap .fc-root,
.calendar-grid-wrap .fc-root .fc,
.calendar-grid-wrap .fc-root>.fc {
    overflow: visible !important
}

.calendar-grid-wrap .fc .fc-daygrid-day-frame {
    min-height: 120px;
    padding: 10px
}

.fc .fc-daygrid-event {
    font-size: .9rem;
    line-height: 1.2;
    margin: 6px 0;
    padding: 6px 8px
}

.fc .fc-event-main,
.fc .fc-event-time,
.fc .fc-event-title {
    font-size: .95rem
}

.calendar-visual {
    overflow-y: visible !important
}

.fc .fc-daygrid-event {
    white-space: normal;
    word-break: break-word
}

.calendar-grid-wrap .fc .fc-daygrid-day,
.calendar-grid-wrap .fc .fc-daygrid-day-frame,
.calendar-grid-wrap .fc .fc-daygrid-day-top {
    margin: 0 !important;
    padding: 0 !important
}

.calendar-grid-wrap .fc .fc-daygrid-day-frame {
    min-height: 64px;
    padding: 4px 6px !important
}

.fc .fc-daygrid-event {
    background-clip: padding-box !important;
    border-radius: 6px !important;
    font-size: .9rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    white-space: normal !important;
    word-break: break-word !important
}

.fc .fc-daygrid-event,
.fc .fc-event-main,
.fc .fc-event-title {
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important
}

.fc .fc-col-header-cell,
.fc .fc-daygrid-day-top {
    padding: 2px 4px !important
}

.fc .fc-list-event {
    margin: 0 !important;
    padding: 4px 6px !important
}

.calendar-grid-wrap .fc-root {
    --fc-event-font-size: 12px;
    --fc-day-min-height: 84px
}

.fc .fc-daygrid-day-frame {
    min-height: var(--fc-day-min-height) !important
}

.fc .fc-daygrid-event,
.fc .fc-event-main,
.fc .fc-event-title {
    font-size: var(--fc-event-font-size) !important
}

@media (max-width:600px) {
    .calendar-grid-wrap .fc .fc-daygrid-day-frame {
        min-height: 72px;
        padding: 6px 8px !important
    }

    .fc .fc-daygrid-event {
        -webkit-line-clamp: 2 !important
    }
}

.signin-refresh-widget {
    position: relative
}

.signin-refresh-controls,
.signin-refresh-widget {
    align-items: center;
    color: #389139;
    display: inline-flex
}

.signin-refresh-controls {
    gap: 6px
}

.signin-refresh-toggle {
    align-items: center;
    color: #389139;
    cursor: pointer;
    display: inline-flex;
    justify-content: center
}

.signin-refresh-caret {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #389139;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 8px
}

.signin-refresh-caret:hover {
    background: #f3f4f6
}

.signin-refresh-popup {
    min-width: 200px;
    right: 0;
    top: 44px
}

.page-header .signin-refresh-widget {
    right: 12px;
    top: 10px
}

.sidebar {
    background: linear-gradient(180deg, var(--color-primary) 0, #2b8a61 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, .08);
    color: var(--color-surface);
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 280px;
    width: var(--sidebar-width, 280px);
    z-index: 1000
}

.sidebar,
.sidebar-header {
    display: flex;
    flex-direction: column
}

.sidebar-header {
    align-items: center;
    border-bottom: 1px solid hsla(0, 0%, 100%, .06);
    gap: .25rem;
    padding: 1.25rem 1rem;
    text-align: center
}

.logo {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: .25rem;
    overflow: visible;
    width: 100%
}

.site-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 85%;
    object-fit: contain;
    width: 120px
}

.logo img[alt] {
    color: hsla(0, 0%, 100%, .9);
    font-size: .85rem
}

.logo img {
    background-color: transparent
}

.brand h2 {
    color: var(--color-surface);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    overflow: visible;
    white-space: nowrap
}

.brand span {
    font-size: .85rem;
    font-weight: 500;
    opacity: .85
}

.sidebar-nav {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: .5rem;
    padding: 1.5rem 0
}

.nav-item {
    align-items: center;
    background: none;
    border: none;
    color: hsla(0, 0%, 100%, .95);
    cursor: pointer;
    display: flex;
    font-size: .98rem;
    gap: 1rem;
    padding: .9rem 1.25rem;
    text-align: left;
    transition: all .2s ease;
    width: 100%
}

.nav-item:hover {
    background: hsla(0, 0%, 100%, .06);
    color: var(--color-surface);
    transform: translateX(4px)
}

.nav-item.active {
    background: hsla(0, 0%, 100%, .08);
    border-right: 3px solid var(--color-accent);
    color: var(--color-surface);
    font-weight: 600
}

.nav-icon {
    display: flex;
    font-size: 1.25rem;
    justify-content: center;
    width: 28px
}

.nav-label {
    font-weight: 500
}

.sidebar-footer {
    border-top: 1px solid hsla(0, 0%, 100%, .06);
    justify-content: space-between;
    padding: 1.25rem
}

.sidebar-footer,
.user-profile {
    align-items: center;
    display: flex
}

.user-profile {
    background: hsla(0, 0%, 100%, .06);
    border-radius: 10px;
    flex: 1 1;
    gap: .75rem;
    margin-right: .5rem;
    padding: .6rem
}

.user-avatar {
    background: hsla(0, 0%, 100%, .15);
    border-radius: 50%;
    font-size: .9rem;
    font-weight: 600;
    height: 40px;
    width: 40px
}

.logout-button,
.user-avatar {
    align-items: center;
    color: var(--color-surface);
    display: flex;
    justify-content: center
}

.logout-button {
    background: hsla(0, 0%, 100%, .06);
    border: 1px solid hsla(0, 0%, 100%, .08);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    height: 36px;
    padding: 8px;
    transition: all .2s ease;
    width: 36px
}

.logout-button:hover {
    background: hsla(0, 0%, 100%, .12);
    border-color: hsla(0, 0%, 100%, .12)
}

@media (max-width:768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
        width: 260px
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .sidebar-header {
        padding: .9rem .75rem
    }

    .nav-item {
        padding: .75rem 1rem
    }
}

.icon {
    align-items: center;
    color: #4b5563;
    display: inline-flex;
    filter: grayscale(100%);
    justify-content: center
}

.icon svg {
    display: block;
    height: 100%;
    width: 100%
}

.icon:hover {
    color: #1f2937;
    filter: none
}

.action-icon {
    display: inline-flex;
    height: 18px;
    margin-right: 8px;
    width: 18px
}

.main-content {
    align-items: flex-start;
    background: var(--color-bg);
    color: var(--text-dark);
    display: flex;
    flex: 1 1;
    font-family: var(--font-body);
    justify-content: center;
    margin-left: 280px;
    margin-left: var(--sidebar-width, 280px);
    min-height: 100vh;
    padding-right: 140px;
    transition: margin-left .3s ease
}

.content-container {
    height: 100vh;
    overflow-x: auto;
    padding: 2rem
}

.content-container,
.page-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 100vh;
    width: 100%
}

.page-container {
    align-items: center;
    color: var(--text-dark);
    flex: 1 1;
    font-family: var(--font-body);
    height: 100%;
    overflow-x: visible;
    padding: 0 1rem;
    transform: translateX(-70px)
}

.page-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    margin-bottom: 2.5rem;
    max-width: calc(100vw - 420px);
    padding: 1.5rem;
    text-align: left;
    transform: translateX(70px);
    width: 100%
}

.page-header h1 {
    align-items: center;
    color: var(--text-dark);
    display: flex;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    gap: 1rem;
    margin: 0 0 .5rem
}

.page-header h1:before {
    background: #389139;
    border-radius: 2px;
    content: "";
    height: 2.5rem;
    width: 4px
}

.page-header p {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0
}

.stats-grid {
    grid-gap: 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
    margin-bottom: 3rem;
    max-width: calc(100vw - 420px);
    transform: translateX(70px);
    width: 100%
}

.stat-card {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 320px;
    min-height: -webkit-fit-content;
    min-height: fit-content;
    padding: 1.5rem;
    transition: all .2s ease;
    width: 100%
}

.stat-card:hover {
    border-color: #389139;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    transform: translateY(-4px)
}

.stat-icon {
    font-size: 2.5rem;
    opacity: .8
}

.stat-content {
    flex: 1 1
}

.stat-value {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.stat-label {
    color: #6b7280;
    font-size: .9rem;
    font-weight: 500
}

.dashboard-grid {
    grid-gap: 2.5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    justify-items: center;
    margin-bottom: 3rem;
    max-width: calc(100vw - 420px);
    transform: translateX(70px)
}

.card,
.dashboard-grid {
    min-height: -webkit-fit-content;
    min-height: fit-content;
    width: 100%
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    max-width: 550px;
    padding: 1.5rem;
    transition: all .2s ease
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12)
}

.card h3 {
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px
}

.card ul {
    list-style: none;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 0
}

.card li {
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: .9rem;
    line-height: 1.4;
    padding: 10px 0
}

.card li:last-child {
    border-bottom: none
}

.activity-list {
    max-height: 300px;
    overflow-y: auto
}

.activity-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 0
}

.activity-item:last-child {
    border-bottom: none
}

.activity-icon {
    opacity: .7
}

.activity-action {
    color: #374151;
    font-weight: 500;
    margin-bottom: .25rem
}

.activity-details {
    align-items: center;
    display: flex;
    font-size: .875rem;
    justify-content: space-between
}

.activity-name {
    color: #389139;
    font-weight: 500
}

.action-buttons {
    grid-gap: 1rem;
    display: grid;
    gap: 1rem
}

.action-btn {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    gap: .75rem;
    padding: 1rem;
    transition: all .3s ease
}

.action-btn:hover {
    background: #389139;
    border-color: #389139;
    color: #fff;
    transform: translateY(-1px)
}

.action-icon {
    font-size: 1.2rem
}

.performance-metrics {
    grid-gap: 1rem;
    display: grid;
    gap: 1rem
}

.metric {
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    padding: .75rem 0
}

.metric:last-child {
    border-bottom: none
}

.metric-value {
    color: #059669;
    font-weight: 600
}

.followup-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.followup-item {
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    padding: .75rem 0
}

.followup-item:last-child {
    border-bottom: none
}

.followup-name {
    color: #374151;
    font-weight: 500
}

.followup-time {
    color: #389139;
    font-size: .875rem;
    font-weight: 500
}

.btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    padding: .75rem 1.5rem;
    transition: all .3s ease
}

.btn-primary {
    background: #389139;
    color: #fff
}

.btn-primary:hover {
    background: #389139;
    transform: translateY(-1px)
}

.btn-secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151
}

.btn-secondary:hover {
    background: #e5e7eb
}

.form-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    padding: .75rem;
    transition: border-color .3s ease;
    width: 100%
}

.form-input:focus {
    border-color: #389139;
    box-shadow: 0 0 0 3px rgba(56, 145, 57, .1);
    outline: none
}

.settings-sections {
    grid-gap: 2rem;
    display: grid;
    gap: 2rem
}

.setting-group {
    margin-bottom: 1.5rem
}

.setting-group:last-child {
    margin-bottom: 0
}

.setting-group label {
    color: #374151;
    display: block;
    font-weight: 500;
    margin-bottom: .5rem
}

.setting-group input[type=checkbox] {
    margin-right: .5rem
}

.report-metric {
    margin: 1.5rem 0;
    text-align: center
}

.report-metric .metric-value {
    color: #389139;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.report-metric .metric-label {
    color: #6b7280;
    font-weight: 500
}

.ai-chat-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-height: 85vh;
    max-width: 800px;
    max-width: calc(100vw - 420px);
    min-height: 60vh;
    overflow: hidden;
    transform: translateX(70px)
}

.ai-chat-header {
    background: linear-gradient(135deg, #389139, #389139);
    color: #fff;
    padding: 2rem;
    text-align: center
}

.ai-header-content {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center
}

.ai-avatar {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2));
    font-size: 3rem
}

.ai-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 .5rem
}

.ai-info p {
    margin: 0;
    opacity: .9
}

.chat-messages {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: 1rem;
    max-height: 50vh;
    min-height: 300px;
    overflow-y: auto;
    padding: 2rem
}

.message {
    display: flex;
    margin-bottom: 1rem;
    max-width: 80%
}

.message-user {
    margin-left: auto
}

.message-assistant {
    margin-right: auto
}

.message-content {
    align-items: flex-start;
    display: flex;
    gap: .75rem
}

.message-avatar {
    align-items: center;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    font-size: 1.5rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem
}

.message-user .message-avatar {
    background: #535353
}

.message-bubble {
    background: #f3f4f6;
    border-radius: 18px;
    max-width: 100%;
    padding: 1rem 1.5rem;
    position: relative
}

.message-user .message-bubble {
    background: #389139;
    color: #fff
}

.message-text {
    color: #111827;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word
}

.message-time {
    font-size: .75rem;
    opacity: .7
}

.typing-indicator {
    padding: .5rem 0
}

.typing-dots,
.typing-indicator {
    display: flex;
    gap: .25rem
}

.typing-dot {
    animation: typing 1.4s ease-in-out infinite;
    background: #6b7280;
    border-radius: 50%;
    height: 8px;
    width: 8px
}

.typing-dot:nth-child(2) {
    animation-delay: .2s
}

.typing-dot:nth-child(3) {
    animation-delay: .4s
}

.typing-indicator span {
    animation: typing 1.4s ease-in-out infinite;
    background: #6b7280;
    border-radius: 50%;
    height: 8px;
    width: 8px
}

.typing-indicator span:nth-child(2) {
    animation-delay: .2s
}

.typing-indicator span:nth-child(3) {
    animation-delay: .4s
}

@keyframes typing {

    0%,
    80%,
    to {
        opacity: .5;
        transform: scale(.8)
    }

    40% {
        opacity: 1;
        transform: scale(1)
    }
}

.quick-prompts {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem
}

.quick-prompts h3 {
    color: #374151;
    font-size: .9rem;
    font-weight: 500;
    margin: 0 0 1rem
}

.prompt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.prompt-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    color: #374151;
    cursor: pointer;
    font-size: .875rem;
    padding: .5rem 1rem;
    transition: all .3s ease
}

.prompt-btn:hover {
    background: #389139;
    border-color: #389139;
    color: #fff
}

.chat-input-container {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 2rem
}

.chat-input-wrapper {
    align-items: flex-end;
    display: flex;
    gap: 1rem
}

.chat-input {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    flex: 1 1;
    font-size: .9rem;
    max-height: 120px;
    padding: 1rem;
    resize: none;
    transition: border-color .3s ease
}

.chat-input:focus {
    border-color: #389139;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    outline: none
}

.send-button {
    font-size: 1.2rem;
    padding: 1rem
}

.chat-send-btn,
.send-button {
    background: #389139;
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all .3s ease
}

.chat-send-btn {
    font-size: .9rem;
    font-weight: 500;
    min-width: 80px;
    padding: 1rem 1.5rem
}

.chat-send-btn:hover:not(:disabled) {
    background: #389139;
    transform: translateY(-1px)
}

.chat-send-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none
}

.quick-actions-toggle {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #374151;
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: .5rem;
    padding: 1rem;
    transition: all .3s ease
}

.quick-actions-toggle:hover {
    background: #e5e7eb;
    transform: translateY(-1px)
}

.quick-actions-overlay {
    background: rgba(0, 0, 0, .3);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000
}

.quick-actions-popup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    max-width: 320px;
    min-width: 280px;
    overflow: hidden;
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001
}

.quick-actions-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem
}

.quick-actions-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0
}

.close-popup-btn {
    background: none;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.2rem;
    padding: .25rem;
    transition: all .2s ease
}

.close-popup-btn:hover {
    background: #e5e7eb;
    color: #374151
}

.quick-actions-content {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: .5rem;
    overflow-y: auto;
    padding: 1rem
}

.quick-action-btn {
    display: block;
    flex-shrink: 0;
    padding: 1rem;
    position: relative;
    text-align: left;
    width: 100%
}

.quick-action-label {
    color: #389139;
    font-weight: 600;
    margin-bottom: .25rem
}

.quick-action-desc {
    color: #6b7280;
    font-size: .8rem;
    line-height: 1.3
}

.quick-action-btn:hover {
    transform: translateY(-1px)
}

.quick-action-btn:hover .quick-action-label {
    color: #fff
}

.quick-action-btn:hover .quick-action-desc {
    color: #e5e7eb
}

.quick-action-btn:disabled {
    border-color: #e5e7eb;
    cursor: not-allowed
}

.quick-action-btn:disabled,
.quick-action-btn:disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    transform: none
}

.quick-loading {
    animation: pulse 1.5s infinite;
    font-size: .9rem
}

.close-popup-btn:disabled {
    cursor: not-allowed;
    opacity: .5
}

.quick-action-btn:last-child {
    margin-bottom: 0
}

.send-button:hover:not(:disabled) {
    background: #389139
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: .5
}

.voice-status-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-left: 2rem
}

.voice-status-indicator {
    align-items: center;
    border: 2px solid hsla(0, 0%, 100%, .3);
    border-radius: 50%;
    display: flex;
    font-size: 1.5rem;
    height: 50px;
    justify-content: center;
    margin-bottom: .5rem;
    transition: all .3s ease;
    width: 50px
}

.voice-status-indicator.inactive {
    background: hsla(0, 0%, 100%, .1)
}

.voice-status-indicator.wake-word {
    animation: pulse 2s infinite;
    background: #f59e0b
}

.voice-status-indicator.listening {
    animation: pulse 1s infinite;
    background: #ef4444
}

.voice-status-indicator.processing {
    animation: spin 1s linear infinite;
    background: #10b981
}

.voice-status-text {
    font-size: .8rem;
    min-height: 1rem;
    opacity: .9;
    text-align: center
}

.voice-controls {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1rem
}

.voice-btn,
.wake-word-btn {
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    cursor: pointer;
    display: flex;
    font-size: .9rem;
    font-weight: 500;
    gap: .5rem;
    padding: .75rem 1rem;
    transition: all .3s ease
}

.voice-btn:hover,
.wake-word-btn:hover {
    border-color: #389139;
    color: #389139;
    transform: translateY(-1px)
}

.wake-word-btn.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff
}

.voice-btn.listening {
    animation: pulse 1s infinite;
    background: #ef4444;
    border-color: #ef4444;
    color: #fff
}

.voice-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none
}

.chat-input.voice-active {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1)
}

.chat-input.voice-captured {
    background-color: #f0fdf4;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .1)
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .8;
        transform: scale(1.05)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@media (max-width:768px) {
    .main-content {
        margin-left: 0
    }

    .content-container {
        padding: 1.5rem 1rem
    }

    .page-container {
        max-width: 100%;
        padding: 0 .5rem
    }

    .dashboard-grid {
        gap: 2rem;
        grid-template-columns: 1fr
    }

    .stats-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
    }

    .stat-card {
        padding: 1.5rem
    }

    .card,
    .stat-card {
        max-width: 100%;
        min-height: -webkit-fit-content;
        min-height: fit-content
    }

    .card {
        padding: 2rem
    }

    .ai-chat-container {
        margin: 1rem;
        max-height: 90vh;
        min-height: 70vh
    }

    .chat-input-container,
    .chat-messages {
        padding: 1rem
    }

    .message {
        max-width: 90%
    }
}

@media (max-width:480px) {
    .content-container {
        padding: 1rem .5rem
    }

    .page-header h1 {
        font-size: 2rem
    }

    .stats-grid {
        gap: 1rem;
        grid-template-columns: 1fr
    }

    .card,
    .stat-card {
        max-width: 100%;
        min-height: -webkit-fit-content;
        min-height: fit-content;
        padding: 1.5rem
    }

    .ai-chat-header {
        padding: 1.5rem
    }

    .ai-header-content {
        flex-direction: column;
        text-align: center
    }
}

@media (min-width:769px) and (max-width:1024px) {
    .page-container {
        max-width: 1000px
    }

    .stats-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
    }

    .dashboard-grid {
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr))
    }

    .stat-card {
        max-width: 280px
    }

    .card {
        max-width: 480px
    }
}

@media (min-width:1400px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr)
    }

    .dashboard-grid,
    .stats-grid {
        margin: 0 auto 3rem;
        max-width: 1200px
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.residents-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem
}

.add-resident-btn {
    background: #389139;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    padding: .75rem 1.5rem;
    transition: all .3s ease
}

.add-resident-btn:hover {
    background: #389139;
    transform: translateY(-1px)
}

.residents-table-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    flex: 1 1;
    height: calc(100vh - 300px);
    margin: 0 auto;
    max-width: calc(100vw - 420px);
    min-height: 60vh;
    overflow-x: auto;
    overflow-y: auto;
    transform: translateX(70px);
    width: 100%
}

.residents-table {
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 1300px;
    width: 100%
}

.residents-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb
}

.residents-table th {
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    min-width: -webkit-fit-content;
    min-width: fit-content;
    padding: 1rem .75rem;
    text-align: left;
    white-space: nowrap
}

.residents-table td:first-child,
.residents-table th:first-child {
    min-width: 180px
}

.residents-table td:nth-child(2),
.residents-table th:nth-child(2) {
    min-width: 60px
}

.residents-table td:nth-child(3),
.residents-table th:nth-child(3) {
    min-width: 80px
}

.residents-table td:nth-child(4),
.residents-table th:nth-child(4) {
    min-width: 140px
}

.residents-table td:nth-child(5),
.residents-table td:nth-child(6),
.residents-table th:nth-child(5),
.residents-table th:nth-child(6) {
    min-width: 200px
}

.residents-table td:nth-child(7),
.residents-table th:nth-child(7) {
    min-width: 120px
}

.residents-table td:nth-child(8),
.residents-table th:nth-child(8) {
    min-width: 140px
}

.residents-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color .2s ease
}

.residents-table tbody tr:hover {
    background: #f8fafc
}

.residents-table tbody tr:last-child {
    border-bottom: none
}

.residents-table td {
    color: #389139;
    min-width: -webkit-fit-content;
    min-width: fit-content;
    padding: 1rem .75rem;
    white-space: nowrap
}

.name-cell {
    align-items: center;
    display: flex;
    gap: .5rem
}

.name-cell strong {
    color: #1f2937
}

.medical-indicator {
    cursor: help;
    font-size: 1rem;
    opacity: .7
}

.room-number {
    color: #389139;
    font-weight: 500
}

.email-cell {
    max-width: 250px;
    min-width: 200px
}

.email-cell,
.emergency-contact {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.emergency-contact {
    font-size: .85rem;
    max-width: 220px;
    min-width: 180px
}

.actions-cell {
    display: flex;
    gap: .5rem;
    justify-content: center
}

.action-btn {
    align-items: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    font-size: .8rem;
    font-weight: 500;
    gap: .25rem;
    padding: .5rem .75rem;
    transition: all .2s ease
}

.edit-action {
    background: #dbeafe;
    color: #389139
}

.edit-action:hover {
    background: #389139;
    color: #fff;
    transform: translateY(-1px)
}

.delete-action {
    background: #fee2e2;
    color: #dc2626
}

.delete-action:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px)
}

.resident-card,
.residents-grid {
    display: none
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.activity-item {
    background: #f8fafc;
    border-left: 3px solid #389139;
    border-radius: 8px;
    gap: 1rem;
    padding: 1rem
}

.activity-icon,
.activity-item {
    align-items: center;
    display: flex
}

.activity-icon {
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.5rem;
    height: 40px;
    justify-content: center;
    width: 40px
}

.activity-content {
    flex: 1 1
}

.activity-content p {
    color: #1f2937;
    font-weight: 500;
    margin: 0 0 .25rem
}

.activity-time {
    color: #6b7280;
    font-size: .8rem
}

.quick-actions {
    grid-gap: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr
}

.quick-action-btn {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    font-weight: 500;
    gap: .5rem;
    padding: 1.5rem 1rem;
    transition: all .3s ease
}

.quick-action-btn:hover {
    background: #389139;
    border-color: #389139;
    color: #fff;
    transform: translateY(-2px)
}

.action-icon {
    font-size: 1.5rem
}

.status-badge {
    border-radius: 20px;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    padding: .25rem .75rem;
    text-transform: capitalize
}

.notes-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.add-opportunity-btn,
.add-tour-btn {
    background: #389139;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: .75rem 1.5rem;
    transition: all .3s ease
}

.add-opportunity-btn:hover,
.add-tour-btn:hover {
    background: #389139;
    transform: translateY(-1px)
}

.opportunities-actions,
.tours-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem
}

.opportunities-table-container,
.tours-table-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    flex: 1 1;
    height: calc(100vh - 300px);
    margin: 0 auto;
    max-width: calc(100vw - 420px);
    min-height: 60vh;
    overflow-x: auto;
    overflow-y: auto;
    transform: translateX(70px);
    width: 100%
}

.resident-form-container {
    background: rgba(0, 0, 0, .5);
    bottom: 0;
    display: block;
    left: 0;
    min-height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000
}

.resident-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
    height: auto;
    margin: 0 auto 2rem;
    max-width: 600px;
    min-height: auto;
    overflow: visible;
    padding: 2rem;
    position: relative;
    width: 100%
}

.resident-form h3 {
    font-size: 1.5rem
}

.resident-edit-form h4,
.resident-form h3 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 1.5rem
}

.resident-edit-form h4 {
    font-size: 1.25rem
}

.form-grid {
    grid-gap: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.5rem
}

.form-group {
    display: flex;
    flex-direction: column
}

.form-group.full-width {
    grid-column: 1/-1
}

.form-group input,
.form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .9rem;
    padding: .75rem;
    transition: border-color .3s ease
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #389139;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    outline: none
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end
}

.save-btn {
    background: #10b981;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    padding: .75rem 1.5rem;
    transition: all .3s ease
}

.save-btn:hover {
    background: #059669;
    transform: translateY(-1px)
}

.cancel-btn {
    background: #6b7280;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    padding: .75rem 1.5rem;
    transition: all .3s ease
}

.cancel-btn:hover {
    background: #4b5563;
    transform: translateY(-1px)
}

.loading-spinner {
    color: #6b7280;
    font-size: 1.1rem;
    padding: 4rem
}

.empty-state {
    color: #6b7280;
    padding: 4rem;
    text-align: center
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0
}

@media (max-width:768px) {
    .residents-table-container {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto
    }

    .residents-table {
        font-size: .8rem;
        min-width: 1000px
    }

    .residents-table td,
    .residents-table th {
        padding: .75rem .5rem
    }

    .action-btn {
        font-size: .7rem;
        padding: .4rem .6rem
    }

    .form-grid,
    .residents-grid {
        grid-template-columns: 1fr
    }

    .resident-form-container {
        padding: 1rem 1rem 2rem
    }

    .resident-form {
        padding: 1.5rem
    }

    .detail-item,
    .form-actions {
        flex-direction: column
    }

    .detail-item {
        gap: .25rem
    }

    .detail-item .value {
        text-align: left
    }
}

.header-with-back {
    gap: 2rem
}

.back-btn,
.header-with-back {
    align-items: center;
    display: flex
}

.back-btn {
    background: #6b7280;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    gap: .5rem;
    padding: .75rem 1.5rem;
    transition: all .3s ease
}

.back-btn:hover {
    background: #4b5563;
    transform: translateY(-1px)
}

.edit-resident-container {
    margin: 0 auto;
    max-width: 1000px;
    max-width: calc(100vw - 420px);
    transform: translateX(70px)
}

.edit-form-card,
.edit-resident-container {
    min-height: -webkit-fit-content;
    min-height: fit-content;
    width: 100%
}

.edit-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 2.5rem
}

.edit-form-card h3 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 2rem;
    text-align: center
}

.edit-form-grid {
    grid-gap: 2.5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2.5rem
}

.form-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem
}

.form-section.full-width {
    grid-column: 1/-1
}

.form-section h4 {
    border-bottom: 2px solid #389139;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    padding-bottom: .5rem
}

.form-row {
    grid-gap: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr
}

.edit-form-actions {
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem
}

.save-resident-btn {
    background: #10b981;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    min-width: 150px;
    padding: 1rem 2rem;
    transition: all .3s ease
}

.save-resident-btn:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 4px 12px #389139;
    transform: translateY(-2px)
}

.save-resident-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none
}

.cancel-edit-btn {
    background: #6b7280;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    min-width: 150px;
    padding: 1rem 2rem;
    transition: all .3s ease
}

.cancel-edit-btn:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px)
}

.cancel-edit-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none
}

.form-section .form-group {
    margin-bottom: 1.5rem
}

.form-section .form-group:last-child {
    margin-bottom: 0
}

.form-section .form-group label {
    color: #374151;
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .5rem
}

.form-section .form-group input,
.form-section .form-group textarea {
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: .95rem;
    padding: .875rem;
    transition: all .3s ease;
    width: 100%
}

.form-section .form-group input:focus,
.form-section .form-group textarea:focus {
    border-color: #389139;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .1);
    outline: none;
    transform: translateY(-1px)
}

.form-section .form-group textarea {
    line-height: 1.5;
    min-height: 120px;
    resize: vertical
}

@media (max-width:768px) {
    .header-with-back {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem
    }

    .edit-form-grid {
        gap: 1.5rem
    }

    .edit-form-grid,
    .form-row {
        grid-template-columns: 1fr
    }

    .edit-form-card {
        padding: 1.5rem
    }

    .edit-form-actions {
        flex-direction: column;
        gap: .75rem
    }

    .cancel-edit-btn,
    .save-resident-btn {
        width: 100%
    }
}

.ai-header-actions {
    align-items: center;
    display: flex;
    gap: 1rem
}

.cheat-sheet-button {
    align-items: center;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px #389139;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: .875rem;
    font-weight: 500;
    gap: .5rem;
    padding: .5rem 1rem;
    transition: all .2s ease
}

.cheat-sheet-button,
.cheat-sheet-button:hover {
    background: linear-gradient(135deg, #389139, #389139)
}

.cheat-sheet-button:hover {
    box-shadow: 0 4px 8px #389139(59, 130, 246, .3);
    transform: translateY(-1px)
}

.cheat-sheet-overlay {
    align-items: center;
    animation: fadeIn .2s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .6);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000
}

.cheat-sheet-popup {
    animation: slideUp .3s ease;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    max-height: 85vh;
    max-width: 1200px;
    overflow-y: auto;
    width: 95%
}

.cheat-sheet-header {
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid #f3f4f6;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10
}

.cheat-sheet-header h3 {
    align-items: center;
    color: #1f2937;
    display: flex;
    font-size: 1.5rem;
    font-weight: 600;
    gap: .5rem;
    margin: 0
}

.close-cheat-sheet {
    align-items: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    transition: all .2s ease;
    width: 32px
}

.close-cheat-sheet:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1)
}

.cheat-sheet-content {
    grid-gap: 1.5rem;
    background: #fafbfc;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 2rem
}

.cheat-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    padding: 1.25rem;
    transition: all .2s ease
}

.cheat-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transform: translateY(-2px)
}

.cheat-section h4 {
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
    display: flex;
    font-size: 1.1rem;
    font-weight: 600;
    gap: .5rem;
    margin: 0 0 1rem;
    padding-bottom: .5rem
}

.cheat-section ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.cheat-section li {
    background: #f8fafc;
    border-left: 3px solid #389139;
    border-radius: 6px;
    font-size: .85rem;
    line-height: 1.4;
    margin-bottom: .5rem;
    padding: .375rem .5rem;
    transition: all .2s ease
}

.cheat-section li:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    transform: translateX(2px)
}

.cheat-section li:last-child {
    margin-bottom: 0
}

.cheat-section strong {
    background: #eff6ff;
    border-radius: 4px;
    color: #1f2937;
    font-size: .85rem;
    font-weight: 600;
    padding: .125rem .375rem
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@media (max-width:768px) {
    .cheat-sheet-popup {
        margin: 1rem;
        max-height: 85vh;
        width: 95%
    }

    .cheat-sheet-header {
        padding: 1rem 1.5rem
    }

    .cheat-sheet-header h3 {
        font-size: 1.25rem
    }

    .cheat-sheet-content {
        gap: 1.5rem;
        grid-template-columns: 1fr;
        padding: 1.5rem
    }

    .cheat-section {
        padding: 1rem
    }

    .cheat-section h4 {
        font-size: 1rem
    }

    .cheat-section li {
        font-size: .85rem;
        padding: .375rem .5rem
    }
}

.modal-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .5);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
    max-height: 90vh;
    max-width: 500px;
    overflow-y: auto;
    width: 100%
}

.modal-content.large {
    max-width: 900px
}

.modal-header {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem
}

.modal-header h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0
}

.modal-header button {
    background: none;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.5rem;
    padding: .25rem;
    transition: background-color .2s
}

.modal-header button:hover {
    background-color: #f3f4f6;
    color: #374151
}

.modal-content form {
    padding: 1.5rem
}

.form-group {
    margin-bottom: 1.5rem
}

.form-group label {
    color: #374151;
    font-size: .875rem;
    margin-bottom: .5rem
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: .875rem;
    padding: .75rem;
    transition: border-color .2s, box-shadow .2s;
    width: 100%
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #389139;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    outline: none
}

.form-group textarea {
    min-height: 80px;
    resize: vertical
}

.modal-actions {
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem
}

.modal-actions button {
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
    padding: .75rem 1.5rem;
    transition: all .2s
}

.modal-actions button[type=button] {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #374151
}

.modal-actions button[type=button]:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af
}

.modal-actions button:not([type=button]),
.modal-actions button[type=submit] {
    background-color: #3b82f6;
    color: #fff
}

.modal-actions button:not([type=button]):hover,
.modal-actions button[type=submit]:hover {
    background-color: #389139
}

.data-table-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem
}

.data-table {
    border-collapse: collapse;
    font-size: .875rem;
    width: 100%
}

.data-table td,
.data-table th {
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem;
    text-align: left
}

.data-table th {
    color: #374151;
    font-weight: 600;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10
}

.data-table tbody tr:hover,
.data-table th {
    background-color: #f9fafb
}

.data-table td {
    color: #6b7280
}

@media (max-width:768px) {
    .modal-overlay {
        padding: .5rem
    }

    .modal-content {
        max-height: 95vh;
        max-width: 100%
    }

    .modal-content form,
    .modal-header {
        padding: 1rem
    }

    .data-table-container {
        max-height: 300px;
        padding: 1rem
    }

    .data-table {
        font-size: .75rem
    }

    .data-table td,
    .data-table th {
        padding: .5rem
    }

    .modal-actions {
        flex-direction: column;
        gap: .5rem
    }

    .modal-actions button {
        width: 100%
    }
}

.excel-reports-container {
    grid-gap: 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 2fr 1fr;
    margin-top: 2rem
}

.report-section {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.report-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 2.5rem
}

.report-card h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem
}

.report-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0
}

.report-features li {
    color: #374151;
    font-size: .95rem;
    padding: .5rem 0
}

.generate-report-btn {
    align-items: center;
    background: linear-gradient(135deg, #389139, #389139);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    font-weight: 600;
    gap: .5rem;
    justify-content: center;
    min-width: 200px;
    padding: 1rem 2rem;
    transition: all .3s ease
}

.generate-report-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #389139, #389139);
    box-shadow: 0 8px 25px rgba(59, 130, 246, .3);
    transform: translateY(-2px)
}

.generate-report-btn:disabled {
    cursor: not-allowed;
    opacity: .7;
    transform: none
}

.loading-spinner {
    animation: spin 1s linear infinite
}

.metrics-preview {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 2rem
}

.metrics-preview h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem
}

.metrics-grid {
    grid-gap: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))
}

.metric-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center
}

.metric-value {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.metric-label {
    color: #6b7280;
    font-size: .85rem;
    font-weight: 500
}

.report-info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    height: -webkit-fit-content;
    height: fit-content;
    padding: 2rem
}

.report-info h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem
}

.info-content {
    margin-bottom: 2rem
}

.info-content p {
    color: #374151;
    font-size: .9rem;
    margin: .5rem 0
}

.info-content strong,
.report-tips h4 {
    color: #1f2937;
    font-weight: 600
}

.report-tips h4 {
    font-size: 1rem;
    margin: 0 0 1rem
}

.report-tips ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.report-tips li {
    color: #374151;
    font-size: .85rem;
    padding: .25rem 0 .25rem 1rem;
    position: relative
}

.report-tips li:before {
    color: #389139;
    content: "•";
    left: 0;
    position: absolute
}

@media (max-width:768px) {
    .excel-reports-container {
        grid-template-columns: 1fr
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .report-card {
        padding: 1.5rem
    }
}

.login-container {
    align-items: center;
    background: linear-gradient(135deg, rgba(31, 111, 79, .06), rgba(196, 154, 90, .03));
    color: var(--text-dark);
    display: flex;
    font-family: var(--font-body);
    justify-content: center;
    min-height: 100vh;
    padding: 20px
}

.login-box {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    max-width: 460px;
    padding: 36px;
    position: relative;
    width: 100%
}

.login-header {
    margin-bottom: 30px;
    text-align: center
}

.login-header h2 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px
}

.login-header p {
    color: #666;
    font-size: 16px;
    margin: 0
}

.login-form {
    margin-bottom: 30px
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    color: #333;
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px
}

.form-group input {
    background: #fafbfc;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    padding: 12px 16px;
    transition: border-color .3s ease, box-shadow .3s ease;
    width: 100%
}

.form-group input:focus {
    background: #fff;
    border-color: #389139;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .1);
    outline: none
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    text-align: center
}

.login-button {
    background: linear-gradient(90deg, var(--color-primary), #2f8b60);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    transition: transform .12s ease, box-shadow .12s ease;
    width: 100%
}

.login-button:hover {
    box-shadow: 0 6px 18px rgba(31, 111, 79, .18);
    transform: translateY(-1px)
}

.login-button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
    transform: none
}



.security-notice {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center
}

.security-notice p {
    align-items: center;
    color: #666;
    display: flex;
    font-size: 14px;
    gap: 8px;
    justify-content: center;
    margin: 0
}

@media (max-width:480px) {
    .login-container {
        padding: 15px
    }

    .login-box {
        padding: 30px 25px
    }

    .login-header h2 {
        font-size: 24px
    }


}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif
}

.App,
body {
    background: #f8fafc
}

.App {
    display: flex;
    min-height: 100vh;
    position: relative
}

.refresh-indicator {
    align-items: center;
    animation: slideInDown .3s ease-out;
    background: #389139;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #fff;
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000
}

.refresh-icon {
    animation: spin 1s linear infinite
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-100%)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.loading-container {
    align-items: center;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    min-height: 100vh
}

.loading-spinner {
    text-align: center
}

.spinner {
    animation: spin 1s linear infinite;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #389139;
    height: 40px;
    margin: 0 auto 16px;
    width: 40px
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}

.loading-spinner p {
    color: #64748b;
    font-size: 16px
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace
}

.edit-input {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 100px;
    padding: 4px 8px;
    transition: border-color .2s ease;
    width: 100%
}

.edit-input:focus {
    border-color: #389139;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .1);
    outline: none
}

.edit-select {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
    padding: 4px 8px;
    transition: border-color .2s ease;
    width: 100%
}

.edit-select:focus {
    border-color: #389139;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .1);
    outline: none
}

.edit-textarea {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    min-width: 150px;
    padding: 4px 8px;
    resize: vertical;
    transition: border-color .2s ease;
    width: 100%
}

.edit-textarea:focus {
    border-color: #389139;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .1);
    outline: none
}

.save-action {
    background: #10b981 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 12px !important;
    margin-right: 4px !important;
    padding: 6px 12px !important;
    transition: background-color .2s ease !important
}

.save-action:hover {
    background: #059669 !important
}

.cancel-action {
    background: #ef4444 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    transition: background-color .2s ease !important
}

.cancel-action:hover {
    background: #dc2626 !important
}

.residents-table td {
    padding: 8px 12px;
    vertical-align: middle
}

.actions-cell {
    min-width: 140px;
    white-space: nowrap
}

/*# sourceMappingURL=main.cc02d737.css.map*/