:root {
    color-scheme: light;
}

body {
    background-image: radial-gradient(circle at top, rgba(79, 70, 229, 0.06), transparent 45%), radial-gradient(circle at bottom, rgba(14, 165, 233, 0.05), transparent 50%);
    overflow-x: hidden;
}


.footer-logo {
    padding: 0.45rem 0.85rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 0.9rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.footer-logo svg {
    display: block;
    height: 30px;
    width: auto;
}

.footer-logo svg text {
    fill: #e2e8f0 !important;
}

.footer-logo svg tspan {
    fill: #a5b4fc !important;
}

.footer-cta-primary,
.footer-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-cta-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(168, 85, 247, 0.95));
    color: #fff;
    box-shadow: 0 18px 38px rgba(99, 102, 241, 0.35);
}

.footer-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 45px rgba(99, 102, 241, 0.45);
}

.footer-cta-secondary {
    color: rgba(226, 232, 240, 0.95);
    border-color: rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.35);
}

.footer-cta-secondary:hover {
    border-color: rgba(226, 232, 240, 0.6);
    background: rgba(30, 41, 59, 0.55);
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-link {
    color: rgba(148, 163, 184, 0.85);
    transition: color 150ms ease, transform 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link::before {
    content: '';
    height: 6px;
    width: 6px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.55);
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 150ms ease, transform 150ms ease;
}

.footer-link:hover {
    color: rgba(196, 210, 254, 0.95);
    transform: translateX(4px);
}

.footer-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.footer-contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.footer-contact-link {
    color: rgba(226, 232, 240, 0.9);
    transition: color 150ms ease;
}

.footer-contact-link:hover {
    color: rgba(196, 210, 254, 0.95);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.45);
    color: rgba(148, 163, 184, 0.75);
    transition: all 180ms ease;
}

.footer-social:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
    color: #fff;
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.35);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(226, 232, 240, 0.06);
}


.footer-grid {
    align-items: flex-start;
}

.footer-brand {
    position: relative;
}

.footer-brand::after {
    content: '';
    position: absolute;
    inset: -1.5rem -1.5rem -1.5rem -1.5rem;
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.25), transparent 55%);
    opacity: 0.4;
    z-index: -1;
}

.footer-contact {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.08);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.footer-contact ul li + li {
    border-top: 1px solid rgba(226, 232, 240, 0.05);
    padding-top: 1rem;
}

.footer-contact ul li {
    padding-bottom: 1rem;
}

@media (max-width: 640px) {
    .footer-cta {
        text-align: center;
    }

    .footer-logo svg {
        height: 26px;
    }
}

img,
video {
    max-width: 100%;
    height: auto;
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(56, 189, 248, 0.35));
    opacity: 0;
    transition: opacity 200ms ease-in-out;
}

.gradient-border:hover::before,
.gradient-border:focus-within::before {
    opacity: 1;
}

.stat-card {
    display: grid;
    gap: 0.25rem;
}

.stat-card span:nth-child(1) {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(100 116 139);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card span:nth-child(2) {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(30 41 59);
}

.stat-card span:nth-child(3) {
    font-size: 0.9rem;
    color: rgb(100 116 139);
}

.rm-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: rgb(71 85 105);
    margin-bottom: 0.4rem;
}

.rm-input,
.rm-select,
.rm-textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: rgb(51 65 85);
    transition: border 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
    -webkit-appearance: none;
    appearance: none;
}

.rm-select option {
    background-color: #ffffff;
    color: rgb(51 65 85);
}

.rm-input:focus,
.rm-select:focus,
.rm-textarea:focus {
    outline: none;
    border-color: rgb(222, 223, 235);
    /* box-shadow: 0 0 0 4px rgba(215, 215, 221, 0.15); */
    background-color: #fff;
}

.rm-textarea {
    min-height: 130px;
    resize: vertical;
}

.rm-helper {
    font-size: 0.8rem;
    color: rgb(100 116 139);
}

.rm-error {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgb(220 38 38);
}

.amenity-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.amenity-grid label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.9rem;
    background-color: rgba(248, 250, 252, 0.8);
    border: 1px solid transparent;
    transition: border 150ms ease, background-color 150ms ease;
}

.amenity-grid label:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background-color: rgba(99, 102, 241, 0.06);
}

.amenity-grid input[type="checkbox"] {
    height: 1.1rem;
    width: 1.1rem;
    accent-color: rgb(79 70 229);
}

.card {
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.card-body {
    padding: 1.75rem 2rem;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.primary-btn {
    background: linear-gradient(135deg, rgb(79 70 229), rgb(56 189 248));
    color: white;
    padding: 0.7rem 1.5rem;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.28);
}

.secondary-btn {
    background-color: white;
    color: rgb(71 85 105);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.7rem 1.5rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.secondary-btn:hover {
    background-color: rgba(226, 232, 240, 0.35);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: rgba(226, 232, 240, 0.8);
    color: rgb(71 85 105);
}

.pill.overdue {
    background-color: rgba(254, 202, 202, 0.8);
    color: rgb(220 38 38);
}

.pill.success {
    background-color: rgba(209, 250, 229, 0.9);
    color: rgb(22 101 52);
}

.pill.warning {
    background-color: rgba(254, 243, 199, 0.9);
    color: rgb(202 138 4);
}

.table-wrapper {
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background-color: white;
}

.table thead {
    background-color: rgba(226, 232, 240, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgb(100 116 139);
}

.table th,
.table td {
    padding: 0.9rem 1.5rem;
    text-align: left;
}

.table tbody tr {
    transition: background-color 120ms ease;
}

.table tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.65);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background-color: rgba(255, 255, 255, 0.65);
    padding: 3rem;
    text-align: center;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(30 41 59);
}

.empty-state-description {
    font-size: 0.9rem;
    color: rgb(100 116 139);
    max-width: 26rem;
}

@media (max-width: 1024px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 1.1rem;
    }

    .stat-card span:nth-child(2) {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .card {
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    }

    .card-body {
        padding: 1.35rem;
    }

    .table {
        min-width: 520px;
    }

    .table-wrapper {
        border-radius: 16px;
    }

    .empty-state {
        padding: 2.5rem 1.75rem;
    }

    .rm-input,
    .rm-select,
    .rm-textarea {
        font-size: 0.92rem;
        padding: 0.7rem 0.9rem;
    }
}

@media (max-width: 640px) {
    body {
        background-image: none;
        background-color: rgb(248 250 252);
    }

    .card-header {
        padding: 1.1rem 1.25rem;
    }

    .card-body {
        padding: 1.2rem;
    }

    .card-header > * {
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.92rem;
    }

    .primary-btn svg,
    .secondary-btn svg {
        flex-shrink: 0;
    }

    .table-wrapper {
        margin: 0 -0.75rem;
    }

    .empty-state-title {
        font-size: 1.05rem;
    }

    .stat-card span:nth-child(1) {
        font-size: 0.78rem;
    }

    .stat-card span:nth-child(2) {
        font-size: 1.5rem;
    }

    .empty-state {
        border-radius: 18px;
    }

    .empty-state-description {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1.05rem;
    }

    .primary-btn,
    .secondary-btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.85rem;
    }

    .table-wrapper {
        margin: 0 -1rem;
    }

    .empty-state {
        padding: 2rem 1.5rem;
    }
}
