/* Dodatni stili za Gostinstvo Urniki aplikacijo */

/* Splošni stili */
body {
    background-color: #f8f9fa;
}

/* Navigacija */
.navbar-brand {
    font-weight: bold;
}

/* Kartice */
.card {
    border: none;
    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 #dee2e6;
    font-weight: 600;
}

/* Gumbi */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Tabele */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Forme */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Alert */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Koledar */
.fc {
    font-family: inherit;
}

.fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.fc-button {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 0.375rem;
}

.fc-button:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.fc-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.fc-event {
    border-radius: 0.25rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Statistika */
.chart-container {
    position: relative;
    height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

/* Animacije */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover efekti */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Koledar - dodatni stili */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.legend-item:hover {
    background: rgba(248, 249, 250, 0.8);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Mobile quick actions */
.mobile-quick-actions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mobile-quick-actions .btn {
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 0.75rem;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.mobile-quick-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: fabPulse 2s infinite;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@keyframes fabPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }
}

/* Calendar loading */
#calendar-loading {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Koledar responsive */
.fc {
    padding: 1rem;
}

.fc-toolbar {
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.fc-button-group {
    border-radius: 6px;
    overflow: hidden;
}

.fc-button {
    border-radius: 0 !important;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.fc-button:first-child {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
}

.fc-button:last-child {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.fc-event {
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.fc-event:hover {
    opacity: 0.8;
}

.fc-daygrid-event-dot {
    display: none;
}

/* Mobile adaptations */
@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .fc {
        padding: 0.5rem;
    }
    
    .fc-toolbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .fc-button {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .fc-event {
        font-size: 0.7rem;
        padding: 1px 2px;
    }
    
    .fc-daygrid-event .fc-event-title {
        font-size: 0.7rem;
    }
    
    /* Skrij legendo na mobilnih napravah */
    #legend-container {
        display: none;
    }
    
    #legend-container.show {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .fc-toolbar-title {
        font-size: 1rem;
    }
    
    .fc-button {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .fab {
        width: 48px;
        height: 48px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* Smooth transitions */
.card, .btn, .form-control, .form-select {
    transition: all 0.2s ease;
}

/* Focus states */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Enhanced buttons */
.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-1px);
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .no-print,
    .fab-container,
    .mobile-quick-actions {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table th,
    .table td {
        border: 1px solid #000;
    }
    
    .fc {
        padding: 0;
    }
}
