/* Custom styles for Renter Management System */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
}

/* === GLOBAL FIXES === */
body {
    background-color: #f8f9fa !important; /* Solid light background */
    background-image: none !important;    /* Remove any background image */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    flex: 1 0 auto; /* Push footer down */
}

.content {
    flex: 1 0 auto;
}

/* === CARD STYLING === */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 12px;
    background: white; /* Ensure white background */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.card-text {
    color: #495057; /* Dark gray for readability */
}

/* === TABLE STYLING === */
.table th {
    background-color: #f1f1f1;
    font-weight: 600;
}

/* === NAVBAR === */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* === ALERTS & FORMS === */
.alert {
    border-radius: 8px;
    border: none;
}

.form-label {
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* === BUTTONS === */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
    margin-right: 0.25rem;
}

/* === FOOTER FIX — MOST IMPORTANT === */
footer {
    flex-shrink: 0;
    background: linear-gradient(90deg, #1a3656, #0e2a47) !important; /* Darker, visible gradient */
    color: white !important;
    padding: 1rem 0;
    margin-top: auto;
}

footer a {
    color: #a0d2ff !important; /* Light blue link */
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff !important; /* White on hover */
    text-decoration: underline;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header.d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        margin-bottom: 0.25rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}