/* SmartSociety Pro - Modern Enterprise SaaS Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glass & Card Styling */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

/* Custom Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}
.badge-occupied { background: #dcfce7; color: #166534; }
.badge-vacant { background: #fef3c7; color: #92400e; }
.badge-maintenance { background: #fee2e2; color: #991b1b; }
.badge-reserved { background: #e0e7ff; color: #3730a3; }

.badge-active { background: #dcfce7; color: #166534; }
.badge-unapproved { background: #fef3c7; color: #92400e; }
.badge-deactivated { background: #f1f5f9; color: #475569; }
.badge-pending { background: #e0f2fe; color: #0369a1; }

.badge-owner { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-tenant { background: #fdf4ff; color: #86198f; border: 1px solid #f5d0fe; }
.badge-family { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Status Dot */
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
}
.status-dot.green { background-color: #22c55e; }
.status-dot.amber { background-color: #f59e0b; }
.status-dot.red { background-color: #ef4444; }
.status-dot.blue { background-color: #3b82f6; }

/* Table Enhancements */
.table-container {
    width: 100%;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}
.data-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Modal and Drawer Backdrop */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease-in-out;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border-left: 4px solid #4f46e5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }

@keyframes toast-slide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
