/* DeNeefe Estates - Index Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #2d3748;
    line-height: 1.5;
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 2rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header h1 {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.sidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0 1rem;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.75rem;
    /* padding: 0.75rem 1.75rem; */
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 400;
}

.sidebar a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: all 0.15s ease-in-out;
}

.sidebar a:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    border-left-color: #667eea;
}

.sidebar a:hover::before {
    background: #667eea;
    transform: scale(1.2);
}

.sidebar a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left-color: #4c51bf;
    font-weight: 500;
}

.sidebar a.active::before {
    background: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.sidebar a.important {
    font-weight: 500;
}

.sidebar a.important::before {
    background: #f59e0b;
} 

.main {
    flex: 1;
    border: none;
    background: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #94a3b8;
    padding: 0.875rem 2rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 400;
    border-top: 1px solid #475569;
}

/* Search/Filter Box */
.search-container {
    padding: 1rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.search-box {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.15s ease-in-out;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Status indicators for important items */
/*
.sidebar a[href*="ATO"],
.sidebar a[href*="MYOB"],
.sidebar a[href*="Tasco-Receipts"],
.sidebar a[href*="TDPay"],
.sidebar a[href*="Telstra"],
.sidebar a[href*="Transfers"],
.sidebar a[href*="Vicroads"] {
    border-left: 3px solid #f59e0b;
}

.sidebar a[href*="ATO"]:hover,
.sidebar a[href*="MYOB"]:hover,
.sidebar a[href*="Tasco-Receipts"]:hover,
.sidebar a[href*="TDPay"]:hover,
.sidebar a[href*="Telstra"]:hover,
.sidebar a[href*="Transfers"]:hover,
.sidebar a[href*="Vicroads"]:hover {
    border-left-color: #d97706;
} */

/* Responsive design */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 40vh;
    }
    
    .main {
        flex: 1;
    }
}