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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            color: #333;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 24px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left {
            flex: 1;
        }

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

        .admin-info {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 5px;
            font-size: 14px;
        }

        .admin-info span {
            color: #6b7280;
        }

        .property-info {
            font-weight: 600;
            color: #2c5530 !important;
        }

        .logout-btn {
            background: #e74c3c;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            transition: background 0.3s;
        }

        .logout-btn:hover {
            background: #c0392b;
        }

        .header h1 {
            color: #2c5530;
            font-size: 2.5em;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .header p {
            color: #6b7280;
            font-size: 1.1em;
            font-weight: 400;
        }

        .dashboard {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 24px;
            margin-bottom: 24px;
        }

        .sidebar {
            background: white;
            border-radius: 12px;
            padding: 24px;
            height: fit-content;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .main-content {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .property-selector {
            margin-bottom: 32px;
        }

        .property-selector label {
            display: block;
            font-weight: 500;
            color: #374151;
            margin-bottom: 8px;
            font-size: 0.95em;
        }

        .property-selector select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 15px;
            background: white;
            color: #374151;
            transition: all 0.2s ease;
        }

        .property-selector select:focus {
            outline: none;
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

        .units-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }

        .unit-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.2s ease;
            position: relative;
        }

        .unit-card:hover {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .unit-card.occupied {
            border-left: 4px solid #10b981;
        }

        .unit-card.vacant {
            border-left: 4px solid #f59e0b;
        }

        .unit-code {
            font-size: 1.25em;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 16px;
        }

        .unit-details {
            font-size: 0.9em;
            line-height: 1.6;
            color: #6b7280;
            margin-bottom: 16px;
        }

        .unit-details div {
            margin-bottom: 4px;
        }

        .unit-details strong {
            color: #374151;
            font-weight: 500;
        }

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

        .btn {
            background: #f9fafb;
            color: #374151;
            border: 1px solid #d1d5db;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.875em;
            font-weight: 500;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        .btn:hover {
            background: #f3f4f6;
            border-color: #9ca3af;
        }

        .btn-primary {
            background: #10b981;
            color: white;
            border: 1px solid #10b981;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            margin-bottom: 8px;
            font-size: 0.9em;
        }

        .btn-primary:hover {
            background: #059669;
            border-color: #059669;
            transform: translateY(-1px);
        }

        .quick-actions {
            margin-bottom: 32px;
        }

        .quick-actions h3 {
            color: #1f2937;
            margin-bottom: 16px;
            font-size: 1.1em;
            font-weight: 600;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            transition: transform 0.2s ease;
        }

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

        .stat-number {
            font-size: 1.8em;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 0.85em;
            opacity: 0.9;
            font-weight: 400;
        }

        .recent-activity {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .recent-activity h3 {
            color: #1f2937;
            margin-bottom: 20px;
            font-size: 1.1em;
            font-weight: 600;
        }

        .activity-list {
            list-style: none;
        }

        .activity-item {
            padding: 16px;
            border-left: 3px solid #10b981;
            margin-bottom: 12px;
            background: #f9fafb;
            border-radius: 0 8px 8px 0;
            transition: all 0.2s ease;
        }

        .activity-item:hover {
            background: #f3f4f6;
            transform: translateX(4px);
        }

        .activity-time {
            color: #9ca3af;
            font-size: 0.8em;
            margin-bottom: 4px;
            font-weight: 400;
        }

        .activity-description {
            color: #374151;
            font-size: 0.9em;
            font-weight: 400;
        }

        .main-content h2 {
            color: #1f2937;
            font-size: 1.5em;
            font-weight: 600;
            margin-bottom: 20px;
        }

        /* Status badges */
        .status-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 500;
            margin-left: 8px;
        }

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

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

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            background: white;
            margin: 5% auto;
            padding: 24px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e5e7eb;
        }

        .modal-header h3 {
            color: #1f2937;
            font-size: 1.25em;
            font-weight: 600;
        }

        .modal-info {
            margin-bottom: 20px;
            padding: 12px;
            background: #f8fafc;
            border-left: 4px solid #3b82f6;
            border-radius: 4px;
        }

        .modal-info p {
            margin: 0;
            color: #64748b;
        }

        /* Reports Section */
        .reports-section {
            background: #f8fafc;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid #e2e8f0;
        }

        .reports-section h3 {
            color: #1f2937;
            margin-bottom: 15px;
            font-size: 1.1em;
            border-bottom: 2px solid #3b82f6;
            padding-bottom: 8px;
        }

        .reports-section .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .reports-section .btn-secondary {
            font-size: 0.9em;
            padding: 8px 12px;
            text-align: left;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .reports-section .btn-secondary:hover {
            background: #4f46e5;
            transform: translateX(3px);
        }

        .close {
            color: #9ca3af;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s ease;
            background: none;
            border: none;
            padding: 4px;
        }

        .close:hover {
            color: #374151;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-weight: 500;
            color: #374151;
            margin-bottom: 6px;
            font-size: 0.9em;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

        .loading {
            display: none;
            text-align: center;
            padding: 20px;
            color: #6b7280;
        }

        .spinner {
            border: 3px solid #f3f4f6;
            border-top: 3px solid #10b981;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive design */
        @media (max-width: 1024px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 16px;
            }
            
            .header {
                padding: 20px;
            }
            
            .header h1 {
                font-size: 2em;
            }
            
            .units-grid {
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .dashboard {
                gap: 16px;
            }
        }

        /* Alert styles */
        .alert {
            padding: 12px 16px;
            margin-bottom: 16px;
            border-radius: 8px;
            font-size: 0.9em;
        }

        .alert-success {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .alert-error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        /* --- Notification Center --- */
        .notification-center {
            background: #f8fafc;
            border: 1px solid #e0e7ef;
            border-radius: 8px;
            margin: 24px 0 16px 0;
            padding: 16px;
        }
        .notification-center h3 {
            margin-top: 0;
            font-size: 1.1em;
            color: #2c3e50;
        }
        #notification-list {
            list-style: none;
            padding: 0;
            margin: 0 0 8px 0;
            max-height: 120px;
            overflow-y: auto;
        }
        #notification-list li {
            padding: 6px 0;
            border-bottom: 1px solid #e0e7ef;
            font-size: 0.97em;
            color: #34495e;
        }
        #notification-list li:last-child {
            border-bottom: none;
        }

        /* --- Webhook/Event Logs --- */
        .webhook-logs {
            background: #f8fafc;
            border: 1px solid #e0e7ef;
            border-radius: 8px;
            margin-bottom: 16px;
            padding: 16px;
        }
        .webhook-logs h3 {
            margin-top: 0;
            font-size: 1.1em;
            color: #2c3e50;
        }
        #webhook-log-list {
            list-style: none;
            padding: 0;
            margin: 0 0 8px 0;
            max-height: 100px;
            overflow-y: auto;
        }
        #webhook-log-list li {
            padding: 6px 0;
            border-bottom: 1px solid #e0e7ef;
            font-size: 0.95em;
            color: #555;
        }
        #webhook-log-list li:last-child {
            border-bottom: none;
        }

        /* --- Advanced Stats --- */
        .advanced-stats {
            background: #f6fafd;
            border: 1px solid #e0e7ef;
            border-radius: 8px;
            margin: 24px 0 16px 0;
            padding: 16px;
        }
        .advanced-stats h3 {
            margin-top: 0;
            font-size: 1.1em;
            color: #2c3e50;
        }
        #dashboard-stats {
            min-height: 80px;
            /* Placeholder for charts/analytics */
        }

        /* --- Utility Management --- */
        .utility-management {
            background: #f6fafd;
            border: 1px solid #e0e7ef;
            border-radius: 8px;
            margin-bottom: 16px;
            padding: 16px;
        }
        .utility-management h3 {
            margin-top: 0;
            font-size: 1.1em;
            color: #2c3e50;
        }
        #utility-meters-list {
            min-height: 60px;
            margin-bottom: 8px;
        }

        /* --- Receipt History --- */
        .receipt-history {
            background: #f8fafc;
            border: 1px solid #e0e7ef;
            border-radius: 8px;
            margin: 24px 0 16px 0;
            padding: 16px;
        }
        .receipt-history h3 {
            margin-top: 0;
            font-size: 1.1em;
            color: #2c3e50;
        }
        #receipt-list {
            list-style: none;
            padding: 0;
            margin: 0 0 8px 0;
            max-height: 120px;
            overflow-y: auto;
        }
        #receipt-list li {
            padding: 6px 0;
            border-bottom: 1px solid #e0e7ef;
            font-size: 0.97em;
            color: #34495e;
        }
        #receipt-list li:last-child {
            border-bottom: none;
        }

        /* --- Modals for New Features --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background: rgba(44, 62, 80, 0.18);
        }
        .modal-content {
            background: #fff;
            margin: 60px auto;
            padding: 24px 32px;
            border: 1px solid #e0e7ef;
            border-radius: 10px;
            width: 95%;
            max-width: 480px;
            position: relative;
            box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
        }
        .modal-content h2 {
            margin-top: 0;
            font-size: 1.2em;
            color: #2c3e50;
        }
        .modal-content .close {
            position: absolute;
            right: 18px;
            top: 12px;
            font-size: 1.5em;
            color: #888;
            cursor: pointer;
        }
        #cron-jobs-list,
        #reporting-section,
        #notification-log-section,
        #webhook-log-section,
        #utility-manager-section,
        #receipt-history-section {
            min-height: 60px;
            margin-top: 12px;
        }

        /* --- Buttons --- */
        .btn-secondary {
            background: #e0e7ef;
            color: #2c3e50;
            border: none;
            border-radius: 5px;
            padding: 7px 16px;
            margin: 4px 0;
            cursor: pointer;
            font-size: 1em;
            transition: background 0.2s;
        }
        .btn-secondary:hover {
            background: #cfd8e3;
        }

        /* --- Pagination Styles --- */
        #units-pagination {
            margin-top: 20px;
            text-align: center;
        }

        .pagination-info {
            color: #6b7280;
            font-size: 0.9em;
            margin-bottom: 10px;
        }

        .pagination-buttons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            flex-wrap: wrap;
        }

        .pagination-btn {
            background: #f8f9fa;
            color: #495057;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 8px 12px;
            margin: 0 2px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.2s ease;
            min-width: 40px;
            text-align: center;
        }

        .pagination-btn:hover {
            background: #e9ecef;
            border-color: #adb5bd;
            transform: translateY(-1px);
        }

        .pagination-btn.active {
            background: #2c5530;
            color: white;
            border-color: #2c5530;
        }

        .pagination-btn.active:hover {
            background: #1e3a22;
            border-color: #1e3a22;
        }

        .pagination-ellipsis {
            color: #6b7280;
            padding: 8px 4px;
            font-weight: bold;
        }

        /* --- Tab Navigation --- */
        .tab-navigation {
            display: flex;
            border-bottom: 2px solid #e5e7eb;
            margin-bottom: 20px;
        }

        .tab-btn {
            background: none;
            border: none;
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #6b7280;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tab-btn:hover {
            color: #2c5530;
            background: #f9fafb;
        }

        .tab-btn.active {
            color: #2c5530;
            border-bottom-color: #2c5530;
            background: #f0f9f0;
        }

        .tab-content {
            display: none;
        }

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

        .badge {
            background: #ef4444;
            color: white;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 600;
            min-width: 18px;
            text-align: center;
        }

        /* --- Failed Messages --- */
        .failed-messages-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e5e7eb;
        }

        .failed-messages-header h4 {
            color: #374151;
            font-size: 16px;
            font-weight: 600;
        }

        .failed-messages-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .failed-message-item {
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            transition: all 0.2s ease;
        }

        .failed-message-item:hover {
            background: #fef1f1;
            border-color: #fca5a5;
        }

        .failed-message-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .failed-message-info {
            flex: 1;
        }

        .failed-message-tenant {
            font-weight: 600;
            color: #374151;
            margin-bottom: 4px;
        }

        .failed-message-phone {
            color: #6b7280;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .failed-message-time {
            color: #9ca3af;
            font-size: 12px;
        }

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

        .failed-message-content {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            padding: 12px;
            margin-bottom: 12px;
            font-size: 14px;
            line-height: 1.4;
            color: #374151;
        }

        .failed-message-context {
            color: #6b7280;
            font-size: 12px;
            font-style: italic;
            margin-bottom: 8px;
        }

        .retry-btn {
            background: #2c5530;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .retry-btn:hover {
            background: #1e3a22;
            transform: translateY(-1px);
        }

        .retry-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
        }

        .delete-btn {
            background: #ef4444;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .delete-btn:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

        .no-failed-messages {
            text-align: center;
            padding: 40px 20px;
            color: #6b7280;
        }

        .no-failed-messages .icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        /* --- Responsive --- */
        @media (max-width: 900px) {
            .dashboard {
                flex-direction: column;
            }
            .sidebar, .main-content {
                width: 100%;
                margin: 0 0 16px 0;
            }
            .modal-content {
                max-width: 98vw;
                padding: 16px 6vw;
            }
            
            .pagination-buttons {
                gap: 3px;
            }
            
            .pagination-btn {
                padding: 6px 10px;
                font-size: 0.8em;
                min-width: 35px;
            }

            .tab-btn {
                padding: 10px 16px;
                font-size: 13px;
            }

            .failed-message-header {
                flex-direction: column;
                gap: 12px;
            }

            .failed-message-actions {
                width: 100%;
                justify-content: flex-end;
            }
        }

        /* Unit Details Modal Styles */
        #unitDetailsModal .modal-content {
            max-width: 700px;
            max-height: 90vh;
        }

        .unit-details-content {
            padding-top: 10px;
        }

        .unit-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 16px;
            background: #f8fafc;
            border-radius: 8px;
            border-left: 4px solid #10b981;
        }

        .unit-header h4 {
            font-size: 1.4em;
            color: #1f2937;
            margin: 0;
        }

        .unit-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .unit-status.occupied {
            background: #dcfce7;
            color: #166534;
        }

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

        .unit-status.maintenance {
            background: #fee2e2;
            color: #991b1b;
        }

        .unit-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .info-section {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 16px;
        }

        .info-section h5 {
            color: #374151;
            font-size: 1.1em;
            margin-bottom: 12px;
            font-weight: 600;
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 8px;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-item label {
            font-weight: 500;
            color: #6b7280;
            font-size: 0.9em;
        }

        .info-item span {
            font-weight: 600;
            color: #1f2937;
        }

        .financial-summary {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid #bae6fd;
        }

        .financial-summary h5 {
            color: #0c4a6e;
            font-size: 1.1em;
            margin-bottom: 16px;
            font-weight: 600;
        }

        .financial-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .financial-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 12px 16px;
            border-radius: 6px;
            border: 1px solid #e0f2fe;
        }

        .financial-item label {
            font-weight: 500;
            color: #374151;
        }

        .amount {
            font-weight: 700;
            font-size: 1.1em;
        }

        .amount.paid {
            color: #059669;
        }

        .amount.balance.outstanding {
            color: #dc2626;
        }

        .amount.balance.paid-up {
            color: #059669;
        }

        .unit-actions-section {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
        }

        .unit-actions-section .btn-primary,
        .unit-actions-section .btn-secondary {
            padding: 10px 20px;
            font-weight: 600;
            font-size: 0.9em;
            transition: all 0.3s ease;
        }

        .unit-actions-section .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .unit-actions-section .btn-secondary:hover {
            background: #f3f4f6;
            color: #374151;
        }

        /* Responsive adjustments for unit details modal */
        @media (max-width: 768px) {
            #unitDetailsModal .modal-content {
                max-width: 95vw;
                margin: 2% auto;
            }

            .unit-info-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .unit-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .unit-actions-section {
                flex-direction: column;
                align-items: stretch;
            }

            .financial-grid {
                gap: 8px;
            }

            .financial-item {
                padding: 10px 12px;
            }
        }