/* Modern Theme for Dietech 2025 - Minimal Enhancements */
/* This file provides minimal styling that works WITH DevExpress themes, not against them */

:root {
    /* Layout */
    --sidebar-width: 280px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gray scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
}

/* Ensure DxDrawer content displays properly */
.dxbl-drawer-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100vh !important;
}

/* Modern Sidebar Header with Search */
.modern-sidebar-header {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Sidebar search styles moved to main.css */

/* Modern Sidebar */
.modern-sidebar {
    height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.modern-sidebar::-webkit-scrollbar {
    width: 6px;
}

.modern-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.modern-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 3px;
}

.modern-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Modern Grid Container */
.modern-grid-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    margin: 1rem;
}

/* Photo thumbnails in grid */
.resident-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resident-photo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Utility classes */
.rounded {
    border-radius: var(--border-radius);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Size variations - controlled by JavaScript */
.theme-size-small {
    font-size: 0.875rem;
}

.theme-size-small .dxbl-grid-data-cell {
    padding: 0.5rem 0.625rem;
}

.theme-size-medium {
    font-size: 0.9375rem;
}

.theme-size-medium .dxbl-grid-data-cell {
    padding: 0.75rem;
}

.theme-size-large {
    font-size: 1rem;
}

.theme-size-large .dxbl-grid-data-cell {
    padding: 1rem 0.875rem;
}
