/* 
 * Glavni CSS stil za aplikaciju za detekciju dimenzija
 * Putanja na produkciji: /var/www/html/css/style.css
 */
/* Osnovni stilovi */
body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    border: none;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Stilovi za prikaz dokumenta */
.document-viewer {
    min-height: 600px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#viewerContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: auto;
}

#loadingIndicator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Stilovi za dimenzije */
.dimension-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.2s;
}

.dimension-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.dimension-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.dimension-text {
    font-weight: 500;
    flex-grow: 1;
}

.dimension-actions {
    display: flex;
    gap: 5px;
}

/* Stilovi za ručno označavanje */
.manual-mode-active .document-viewer {
    cursor: crosshair;
}

.dimension-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

/* Prilagodbe za tabove kategorije */
.nav-tabs .nav-link {
    color: #495057;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
}

.tab-content {
    max-height: 300px;
    overflow-y: auto;
}

/* Zoom kontrole */
.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsivnost */
@media (max-width: 768px) {
    .document-viewer {
        min-height: 400px;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
}