/* Custom styles for Landlord Rental Assistant */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar styling */
#sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

#sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .75rem 1rem;
}

#sidebar .nav-link.active {
    color: #0d6efd;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, .1);
}

/* Main content area */
main {
    padding-bottom: 3rem;
}

/* Card styling */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Table styling */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Status badges */
.badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

.form-check-input {
    cursor: pointer;
}

/* Modal styling */
.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Summary cards */
.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1.75rem;
    font-weight: bold;
}

/* Footer styling */
footer {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 48px 0 0;
        box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
        height: calc(100vh - 48px);
        padding-top: .5rem;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* Custom styling for checkboxes in the dashboard */
.form-check-inline {
    margin-right: 0.5rem;
}

/* Styling for property form in modal */
#addPropertyForm h5,
#editPropertyForm h5 {
    color: #0d6efd;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Make notification preference checkboxes centered */
.table td input[type="checkbox"] {
    margin: 0 auto;
    display: block;
}

/* Custom styling for the dashboard status cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger {
    transition: transform 0.2s ease;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-danger:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Problem tenant indicators */
.badge.bg-dark {
    margin-left: 0.25rem;
}

/* Additional responsive styling */
@media (max-width: 576px) {
    .btn-toolbar .btn {
        margin-bottom: 0.5rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 1.5rem;
    }
}

/* Active tenant highlighting */
tr.table-danger {
    border-left: 4px solid #dc3545;
}

/* Calendar styling */
.calendar-container {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.calendar-day {
    height: 100px;
    border: 1px solid #dee2e6;
    padding: 5px;
}

.calendar-day.today {
    background-color: #e8f4ff;
}

.calendar-day.has-due {
    background-color: #fff8e8;
}

.calendar-day.has-late {
    background-color: #ffe8e8;
}

.calendar-event {
    font-size: 0.8rem;
    margin-bottom: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.due {
    background-color: #ffc107;
    color: #000;
}

.calendar-event.paid {
    background-color: #28a745;
    color: #fff;
}

.calendar-event.late {
    background-color: #dc3545;
    color: #fff;
}

.calendar-event.reminder {
    background-color: #6c757d;
    color: #fff;
}

/* Print styling */
@media print {
    .no-print {
        display: none;
    }
    
    .table {
        border-collapse: collapse;
    }
    
    .table th, .table td {
        border: 1px solid #dee2e6;
    }
}

/* Notification bubble */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 3px 6px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
}