:root {
    --rentlokr-ink: #0f172a;
    --rentlokr-sub-ink: #5f6b85;
    --rentlokr-hero-ink: #ffffff;
    --rentlokr-sky: #22b4f5;
    --rentlokr-sky-bright: #5fd0ff;
    --rentlokr-coral: #ff8a5c;
    --rentlokr-sand: #ffe08a;
    --rentlokr-navy: #181736;
    --rentlokr-hero-bg: #181736;
    --rentlokr-page-bg: #f7faff;
    --rentlokr-card-bg: #ffffff;
    --rentlokr-accent-ink: #bf2b2d;
    --rentlokr-grad-1: linear-gradient(120deg, #b36910, #dab526, #b36910);
    --rentlokr-grad-2: linear-gradient(135deg, #87d5ae, #3ea281, #28496e);
    --rentlokr-grad-3: linear-gradient(135deg, #cc3f17, #a3362a, #862c3b);
    --rentlokr-grad-4: linear-gradient(135deg, #da9d0a, #d94f0a, #a82741);
    --rentlokr-grad-5: linear-gradient(135deg, #4abf8f, #b86a2f, #cb6018);
    --rentlokr-grad-6: linear-gradient(135deg, #cacad2, #3065a7);
    --rentlokr-grad-7: linear-gradient(135deg, #4cd089, #c1c2c9);
    --rentlokr-font-display: "Plus Jakarta Sans";
    --rentlokr-font-body: "Open Sans";
    --rentlokr-header-height: 64px;
}

body {
    color: var(--rentlokr-ink);
    background: var(--rentlokr-page-bg);
}

.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: var(--rentlokr-font-display), var(--rentlokr-font-body), sans-serif;
}

.mud-secondary-text {
    color: var(--rentlokr-sub-ink) !important;
    --mud-ripple-color: var(--rentlokr-sub-ink) !important;
}

.rentlokr-appbar {
    background: var(--rentlokr-navy) !important;
    color: #ffffff !important;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    min-width: 148px;
    padding: 0.35rem 0.85rem 0.35rem 0.25rem;
    cursor: pointer;
    border-radius: 8px;
}

.header-logo-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.rentlokr-hero {
    background-color: var(--rentlokr-hero-bg) !important;
    background-image: url("/images/RentLokr_Dark_ComingSoon3.svg") !important;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
}

.rentlokr-hero,
.rentlokr-hero .mud-typography,
.rentlokr-hero .mud-typography * {
    color: var(--rentlokr-hero-ink) !important;
}

.rentlokr-searchbar .mud-input-control input,
.rentlokr-searchbar .mud-input-control textarea,
.rentlokr-searchbar .mud-input-slot {
    font-size: 0.85rem !important;
}

.rentlokr-searchbar .mud-input-label {
    font-size: 0.75rem !important;
}

.rentlokr-searchbar .mud-input-adornment {
    font-size: 0.9rem !important;
}

.rentlokr-searchbar {
    position: relative;
    top: 50px;
}

.rentlokr-searchbar .mud-paper {
    margin: 0 !important;
}

.mud-main-content {
    background: transparent;
}




/* Account Hub Styles */
.rentlokr-account-welcome {
    background: var(--rentlokr-navy);
    color: #ffffff;
    padding: 1.5rem 0;
    margin-bottom: 0;
    width: 100%;
}

.rentlokr-account-welcome .mud-typography {
    color: #ffffff !important;
}

.rentlokr-account-welcome .mud-typography-body2 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Account Mode Tabs */
.account-mode-header {
    gap: 1rem;
}

.account-mode-tabs {
    background: transparent;
    flex: 1 1 auto;
    min-width: 0;
}

.account-mode-tabs-item {
    min-width: 0;
}

.account-mode-cta-item {
    margin-left: auto;
}

.account-mode-tabs .mud-tab {
    font-weight: 500;
    text-transform: none;
    min-width: 120px;
}

.account-mode-tabs .mud-tab.mud-tab-active {
    color: var(--rentlokr-navy);
}

.account-mode-tabs .mud-tabs-toolbar {
    background: transparent;
}

@media (min-width: 900px) {
    .account-mode-tabs ::deep .mud-tabs-tabbar {
        width: 100%;
    }

    .account-mode-tabs ::deep .mud-tabs-tabbar-content {
        display: flex;
        width: 100%;
    }

    .account-mode-tabs ::deep .mud-tab {
        flex: 1 1 0;
        max-width: none;
    }
}

@media (max-width: 899.98px) {
    .header-logo-link {
        min-height: 56px;
        min-width: 168px;
        padding: 0.45rem 1rem 0.45rem 0.35rem;
    }

    .account-mode-header {
        align-items: stretch;
    }
}

/* Account Mode Content Transitions */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes subtleFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-mode-content {
    animation: fadeSlideIn 0.25s ease-out;
}

.account-mode-content-fade {
    animation: fadeIn 0.2s ease-out;
}

/* Sub-tab content transitions (faster, subtler) */
.sub-tab-content {
    animation: subtleFadeIn 0.18s ease-out;
}

/* Stat Block Styles */
.rentlokr-stat-block {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #ffffff;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.rentlokr-stat-block .stat-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    opacity: 0.7;
}

.rentlokr-stat-block .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.rentlokr-stat-block .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.rentlokr-stat-block.stat-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.rentlokr-stat-block.stat-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.rentlokr-stat-block.stat-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.rentlokr-stat-block.stat-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Mode Toggle Button Styles */
.rentlokr-mode-toggle {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: var(--rentlokr-ink);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rentlokr-mode-toggle:hover {
    background: #f3f4f6;
}

.rentlokr-mode-toggle.active {
    background: var(--rentlokr-navy);
    color: #ffffff;
    border-color: var(--rentlokr-navy);
}

/* Calendar Styles */
.rentlokr-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.rentlokr-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.rentlokr-calendar-header > div {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
}

.rentlokr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.rentlokr-calendar-day {
    min-height: 80px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem;
    position: relative;
}

.rentlokr-calendar-day:nth-child(7n) {
    border-right: none;
}

.rentlokr-calendar-day.today {
    background: #eff6ff;
}

.rentlokr-calendar-day.other-month {
    background: #f9fafb;
    color: #9ca3af;
}

.rentlokr-calendar-day-number {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.rentlokr-calendar-day-number.today {
    background: var(--rentlokr-navy);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rentlokr-booking-bar {
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.rentlokr-booking-time {
    display: inline-block;
    padding: 0 4px;
    margin-right: 4px;
    border-radius: 2px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
}

.rentlokr-booking-title {
    font-weight: 500;
}

.rental-card {
    border-radius: 10px;
    overflow: hidden;
}

.rental-card-media {
    position: relative;
}

.rental-card-image {
    height: 200px;
    width: 100%;
    border-radius: 10px 10px 6px 6px;
    background-color: #f5f5f5;
}

.rental-card-carousel {
    height: 200px;
}

.rental-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rental-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rental-detail-media {
    position: relative;
}

.rentlokr-booking-bar.status-pending {
    background: #f97316;
}

.rentlokr-booking-bar.status-approved {
    background: #3b82f6;
}

.rentlokr-booking-bar.status-active {
    background: #22c55e;
}

.rentlokr-booking-bar.status-completed {
    background: #6b7280;
}

.rentlokr-booking-bar.status-cancelled {
    background: #ef4444;
}

.rentlokr-booking-bar.status-returned {
    background: #8b5cf6;
}

/* Calendar Legend */
.rentlokr-calendar-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.rentlokr-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.rentlokr-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.rentlokr-legend-dot.pending { background: #f97316; }
.rentlokr-legend-dot.approved { background: #3b82f6; }
.rentlokr-legend-dot.active { background: #22c55e; }
.rentlokr-legend-dot.completed { background: #6b7280; }
.rentlokr-legend-dot.returned { background: #8b5cf6; }
