/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* DataTables Responsive Styles */
.dataTables_wrapper {
    padding: 1rem 0;
}

.dtr-details {
    width: 100%;
}

/* Card Styles */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

/* Dashboard Stats */
.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    font-size: 2rem;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 0.25rem !important;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .no-print {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0;
        margin: 0;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    .table {
        width: 100% !important;
    }
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Adjustments */
.modal-header {
    background-color: #f8f9fa;
}

.modal-footer {
    background-color: #f8f9fa;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Tenants Page Custom Styles --- */
.tenants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tenants-header h4 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tenants-table {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tenants-table th {
    background: #f4f6fa;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e9ecef;
}

.tenants-table td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.tenants-table tr:hover {
    background: #f8fafc;
    transition: background 0.2s;
}

.tenants-actions .btn {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 0.25rem;
    border-radius: 50% !important;
    transition: background 0.15s, color 0.15s;
}

.tenants-actions .btn:last-child {
    margin-right: 0;
}

.tenants-actions .btn-outline-primary:hover {
    background: #e7f1ff;
    color: #0d6efd;
}

.tenants-actions .btn-outline-danger:hover {
    background: #ffe7e7;
    color: #dc3545;
}

@media (max-width: 576px) {
    .tenants-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .tenants-table th, .tenants-table td {
        font-size: 0.95rem;
        padding: 0.5rem 0.4rem;
    }
} 