/*
Copyright (c) 2026 Center for Family Development
All rights reserved.
*/

/* Custom styles for Building Reservation System */

.navbar-brand {
    font-weight: bold;
}

/* Custom navbar color */
.navbar.bg-primary {
    background-color: #8b9f6d !important;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

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

.btn {
    border-radius: 0.375rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}

.table th.sortable::after {
    content: "\f0dc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0.5rem;
    color: #9aa0a6;
}

.table th.sortable.sort-asc::after {
    content: "\f0de";
    color: #6c757d;
}

.table th.sortable.sort-desc::after {
    content: "\f0dd";
    color: #6c757d;
}

.table .floor-separator td {
    border-top: 3px solid #495057;
}

.badge {
    font-size: 0.75em;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom button styles */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.15s ease-in-out;
}

/* Badge color overrides */
.badge.bg-info {
    background-color: #6c9bd1 !important;
    color: #000000;
}

.badge.bg-primary {
    background-color: #8b9f6d !important;
    color: #000000;
}

.badge.bg-warning {
    background-color: #ff6b35 !important;
    color: #000000;
    font-weight: 600;
}

/* Modal improvements */
.modal-header {
    background-color: #8b9f6d;
    color: #000000;
    border-bottom: 1px solid #dee2e6;
}

/* Alert improvements */
.alert {
    border-radius: 0.5rem;
}

/* Table responsive improvements */
.table-responsive {
    border-radius: 0.375rem;
}

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navigation improvements */
.navbar .nav-link {
    color: #e8f0dc !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: #000000 !important;
}

.navbar .navbar-brand {
    color: #e8f0dc !important;
    font-weight: 700;
}

.navbar .navbar-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar .navbar-brand:hover .navbar-logo {
    filter: brightness(0) invert(0.8);
}

/* Increase navbar height to accommodate larger logo */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Footer spacing */
body {
    padding-bottom: 2rem;
}

/* Quick action buttons */
.btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

/* Empty state styling */
.text-muted {
    color: #6c757d !important;
}

.text-muted .fas {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}
