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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.dashboard {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main";
    grid-template-rows: 70px 1fr;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    grid-area: header;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left .logo i {
    font-size: 24px;
}

.header-left .logo h2 {
    font-size: 20px;
    font-weight: 600;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.search-container input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-container input:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notifications i {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.nav-menu {
    padding: 24px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section h3 {
    padding: 0 24px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.nav-section ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f1f5f9;
    border-left-color: #3b82f6;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, rgba(59,130,246,0.05) 100%);
    border-left-color: #3b82f6;
    color: #3b82f6;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-item span {
    font-weight: 500;
    font-size: 14px;
}

/* Main Content */
.main-content {
    grid-area: main;
    overflow-y: auto;
    padding: 32px;
    background: #f8fafc;
}

.content-view {
    display: none;
}

.content-view.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

.page-header p {
    color: #64748b;
    margin-top: 4px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-info p {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.trend.positive {
    background: #dcfce7;
    color: #166534;
}

.trend.negative {
    background: #fef2f2;
    color: #dc2626;
}

.trend.neutral {
    background: #fef3c7;
    color: #92400e;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #f1f5f9;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    margin-bottom: 4px;
}

.activity-content span {
    color: #64748b;
    font-size: 14px;
}

.activity-content small {
    color: #94a3b8;
    font-size: 12px;
}

/* Payment Summary */
.payment-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.payment-amount {
    font-weight: 700;
    font-size: 18px;
}

.payment-amount.success {
    color: #059669;
}

.payment-amount.warning {
    color: #d97706;
}

.payment-amount.danger {
    color: #dc2626;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: #3b82f6;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 24px;
    color: #3b82f6;
}

.action-btn span {
    font-weight: 600;
    color: #1e293b;
}

/* Data Tables */
.data-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.table-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.occupied {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.vacant {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.paid {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.confirmed {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Residence Grid */
.residence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.residence-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.residence-card:hover {
    transform: translateY(-4px);
}

.residence-image {
    position: relative;
    overflow: hidden;
}

.residence-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.residence-card:hover .residence-image img {
    transform: scale(1.05);
}

.residence-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

.residence-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.location i {
    color: #3b82f6;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.residence-info {
    padding: 20px;
}

.residence-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.residence-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
}

.residence-details i {
    margin-right: 4px;
}

.residence-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.owner {
    font-size: 14px;
    color: #64748b;
}

.residence-actions {
    display: flex;
    gap: 12px;
}

.residence-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Payment Dashboard */
.payment-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.payment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.payment-stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.payment-stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.payment-stat-card p {
    color: #64748b;
    margin-bottom: 8px;
}

.payment-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Calendar */
.reservation-calendar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 16px 8px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.calendar-day.header {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    min-height: 40px;
    justify-content: center;
}

.calendar-day.today {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.calendar-day.has-event {
    background: #fef3c7;
}

.event {
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-top: 4px;
}

/* Reservation List */
.reservation-list {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 16px;
}

.reservation-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.reservation-info p {
    color: #64748b;
    margin-bottom: 4px;
}

.reservation-date {
    font-size: 14px;
    color: #94a3b8;
}

/* Alerts */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid;
}

.alert-item.critical {
    border-left-color: #ef4444;
}

.alert-item.warning {
    border-left-color: #f59e0b;
}

.alert-item.info {
    border-left-color: #3b82f6;
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.alert-item.critical .alert-icon {
    background: #ef4444;
}

.alert-item.warning .alert-icon {
    background: #f59e0b;
}

.alert-item.info .alert-icon {
    background: #3b82f6;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.alert-content p {
    color: #64748b;
    margin-bottom: 8px;
}

.alert-content small {
    color: #94a3b8;
    font-size: 12px;
}

.alert-actions {
    display: flex;
    gap: 8px;
}

/* Info Messages */
.info-message {
    background: white;
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.info-message i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 16px;
}

.info-message p {
    font-size: 18px;
    color: #64748b;
}

/* Employee Info */
.employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workplace-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Activity Timeline */
.activity-timeline {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    width: 2px;
    height: calc(100% - 24px);
    background: #e2e8f0;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.timeline-marker.payment {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.timeline-marker.registration {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.timeline-marker.maintenance {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.timeline-marker.document {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.timeline-content {
    flex: 1;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.timeline-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.timeline-content p {
    color: #64748b;
    margin-bottom: 12px;
}

.timeline-meta {
    display: flex;
    gap: 16px;
}

.meta-item {
    font-size: 12px;
    color: #94a3b8;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Reporting Dashboard */
.reporting-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.report-templates {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.template-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.template-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.template-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

.recent-reports {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.report-item:hover {
    background: #f1f5f9;
}

.report-info {
    flex: 1;
}

.report-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.report-info p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.report-size {
    font-size: 12px;
    color: #94a3b8;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
}

.report-actions {
    display: flex;
    gap: 8px;
}

/* Assets */
.assets-overview {
    margin-bottom: 32px;
}

.asset-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.asset-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.asset-card:hover {
    transform: translateY(-4px);
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.asset-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.asset-icon.appliance {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.asset-icon.hvac {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.asset-icon.security {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.asset-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.asset-location {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.asset-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.detail-item {
    font-size: 12px;
    color: #94a3b8;
}

.asset-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.status-badge.maintenance {
    background: #fef3c7;
    color: #92400e;
}

/* Alerts Dashboard */
.alerts-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.alert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Attachments Dashboard */
.attachments-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.upload-zone {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.upload-area i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.upload-area h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 16px;
}

.document-categories {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #3b82f6;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.document-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.document-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
}

.document-icon.pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.document-icon.image {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.document-icon.excel {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.document-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.document-info p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.document-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.document-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Report Builder */
.report-builder {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.builder-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.generated-reports {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.report-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.report-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 250px 1fr;
    }
    
    .main-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-areas: 
            "header"
            "main";
        grid-template-columns: 1fr;
        grid-template-rows: 70px 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 70px;
        height: calc(100vh - 70px);
        width: 280px;
        z-index: 999;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .table-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .residence-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .assets-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-center {
        display: none;
    }
    
    .alert-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 60px;
        font-size: 12px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }
}