/* Custom CSS for Visitor Management System */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6f0;
}

/* Border Left Cards */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* Image Preview */
.img-preview {
    max-width: 100%;
    height: 150px;
    border: 1px dashed #ccc;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.img-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Camera Container */
.camera-container {
    position: relative;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    overflow: hidden;
}

/* Responsive Tables */
@media (max-width: 767.98px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Navbar Customization */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-nav .nav-item .nav-link {
    padding: 0.75rem 1rem;
    color: #5a5c69;
}

.navbar-nav .nav-item .nav-link.active {
    color: #4e73df;
    font-weight: 600;
    background-color: #f8f9fc;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #4e73df;
    background-color: #f8f9fc;
}

/* Footer Styles */
footer {
    margin-top: auto;
    border-top: 1px solid #e3e6f0;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #5a5c69;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #4262c5;
    border-color: #3d5cb8;
}

.btn-success {
    background-color: #1cc88a;
    border-color: #1cc88a;
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #169b6b;
}

.btn-warning {
    background-color: #f6c23e;
    border-color: #f6c23e;
    color: #fff;
}

.btn-warning:hover {
    background-color: #f4b619;
    border-color: #f4b30d;
    color: #fff;
}

/* Modal Styles */
.modal-header {
    background-color: #4e73df;
    color: white;
}

.modal-header .btn-close {
    color: white;
    text-shadow: none;
    opacity: 0.8;
}

/* Room Assignment Modal Styles */
.modal-xl .table th {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
}

.modal-xl .table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.modal-xl .table tbody tr:hover {
    background-color: #f8f9fc;
    cursor: pointer;
}

.room-occupancy-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
}

.visitor-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.visitor-summary-card .card-body {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
}

/* Room Selection Button Styles */
.room-select-btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.room-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}