/* LakiMagacioner - Custom Styles */

body {
    background-color: #f8f9fa;
}

/* Navbar customization */
.navbar-brand i, .nav-link i {
    margin-right: 0.5rem;
}

/* View sections */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation for modals */
@keyframes slideUp {
    from { 
        transform: translateY(20px); 
        opacity: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 1;
    }
}

.animation-slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Table styles */
.table-responsive {
    max-height: 60vh;
    overflow-y: auto;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    font-weight: 500;
}

/* Button styles */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Toast styles */
.toast-bg-success {
    background-color: #d4edda !important;
}

.toast-bg-danger {
    background-color: #f8d7da !important;
}

.toast-bg-info {
    background-color: #d1ecf1 !important;
}

/* Image preview */
#image_preview, #current_image_preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .table-responsive {
        max-height: 40vh;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .btn-group-mobile {
        width: 100%;
    }
}

/* Status badges */
.badge-status {
    min-width: 60px;
}

/* Search bar */
.search-bar-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Modal improvements */
.modal-header.bg-primary {
    color: white !important;
}

.modal-lg, .modal-xl {
    max-width: 90%;
}

@media (min-width: 768px) {
    .modal-lg, .modal-xl {
        max-width: 800px;
    }
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
}

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

/* Table cell styling */
.table td, .table th {
    vertical-align: middle;
}

/* Action buttons */
.btn-action {
    min-width: 40px;
}

/* Tag display */
.tag-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    margin-right: 2px;
    border-radius: 12px;
}

/* Responsive table headers */
.table th, .table td {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .table th:nth-child(n+3), 
    .table td:nth-child(n+3) {
        display: none;
    }
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
}

/* Progress bar for image upload */
.progress {
    height: 25px;
    margin-top: 10px;
}
