/* Modern Dashboard Side Navigation */

:root {
    --dashboard-bg: #DAA520;
    /* Legacy Goldenrod / Primary Orange */
    --dashboard-bg-gradient: linear-gradient(180deg, #DAA520 0%, #d35400 100%);
    /* Orange to Dark Orange */
    --nav-text: #ffffff;
    --nav-text-hover: #fdfefe;
    --nav-active-bg: rgba(255, 255, 255, 0.2);
    --nav-active-border: #ffffff;
    --nav-icon-width: 20px;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    background: var(--dashboard-bg-gradient);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Nav Links */
.sidebar .nav-link {
    font-weight: 500;
    color: var(--nav-text) !important;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

/* Icons */
.sidebar .nav-link i,
.sidebar .nav-link svg {
    margin-right: 12px;
    width: var(--nav-icon-width);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

/* Hover State */
.sidebar .nav-link:hover {
    color: var(--nav-text-hover) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link:hover i {
    color: var(--nav-text-hover);
}

/* Active State */
.sidebar .nav-link.active {
    color: var(--nav-text-hover) !important;
    background-color: var(--nav-active-bg);
    border-left-color: var(--nav-active-border);
    font-weight: 600;
}

.sidebar .nav-link.active i {
    color: var(--nav-active-border);
}

/* Badge */
.sidebar .badge {
    margin-left: auto;
}

/* Section Headings */
.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 600;
}

/* Navbar Override (for the top sticky header) */
.navbar {
    background-color: #34495e !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    color: white !important;
    font-weight: 600;
    padding-left: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        top: 3.5rem;
        /* Adjust based on navbar height */
    }
}

/* Dashboard Main Content Styles */

.dashboard-hero {
    background: linear-gradient(135deg, var(--dashboard-bg) 0%, #d35400 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-hero h2 {
    color: white;
    font-weight: 700;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-icon.blue {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.stat-icon.green {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.stat-icon.orange {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stat-icon.red {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.stat-icon.purple {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px dashed #bdc3c7;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7f8c8d;
}

.action-card:hover {
    background: #f8f9fa;
    border-color: var(--dashboard-bg);
    color: var(--dashboard-bg);
    text-decoration: none;
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Premium Table Styles */
.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: none;
}

.table-card .card-header {
    background: transparent;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-table {
    margin-bottom: 0;
}

.premium-table thead th {
    background-color: #f8f9fa;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    border-top: none;
}

.premium-table tbody td,
.premium-table tbody th {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    color: #2c3e50;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tbody tr {
    transition: background-color 0.2s ease;
}

.premium-table tbody tr:hover {
    background-color: #fafbfc;
}

.status-badge {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid,
.status-active,
.status-rented {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-pending,
.status-open {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}


.status-due,
.status-closed {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Chat Styles */
.message-bubble {
    max-width: 70%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-sent {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message-received {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    text-align: right;
    margin-top: 0.25rem;
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(211, 84, 0, 0.9) 100%), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-content h1 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-search-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--dashboard-bg);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.app-showcase {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.app-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(211, 84, 0, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* Navbar Custom Styles */
.navbar-custom {
    background: rgba(33, 37, 41, 0.95);
    /* Main dashboard dark color with transparency */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
}

/* Adjust body padding for fixed navbar */
body {
    padding-top: 76px;
}