﻿.uploaded-images {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .image-preview:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .image-preview img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

.image-actions {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}



.btn-set-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

    .btn-set-main:hover:not(:disabled) {
        background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
    }

    .btn-set-main:disabled {
        background-color: #6c757d;
        opacity: 0.6;
    }

.badge-main {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #198754;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.image-count {
    color: #6c757d;
    font-weight: normal;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

    .empty-state i {
        font-size: 48px;
        margin-bottom: 15px;
        color: #dee2e6;
    }

/* Responsive adjustments */
@@media (max-width: 576px) {
    .image-preview img {
        height: 150px;
    }

    .btn-set-main {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@@media (min-width: 1200px) {
    .image-preview img {
        height: 200px;
    }
}

.btn-set-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .btn-set-main:hover:not(:disabled) {
        background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
    }

    .btn-set-main:disabled {
        background-color: #6c757d;
        opacity: 0.6;
    }

.btn-remove-image {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .btn-remove-image:hover:not(:disabled) {
        background-color: #c82333;
    }

    .btn-remove-image:disabled {
        background-color: #6c757d;
        opacity: 0.6;
    }

/* Navigation button enhancements */
.btn-primary .bi-arrow-right-circle-fill,
.btn-outline-secondary .bi-arrow-left-circle-fill {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure icons are visible on all button states */
.btn-primary:not(:disabled) .bi-arrow-right-circle-fill {
    color: white !important;
}

.btn-primary:disabled .bi-arrow-right-circle-fill {
    color: rgba(255, 255, 255, 0.7) !important;
}

.btn-outline-secondary .bi-arrow-left-circle-fill {
    color: #6c757d !important;
}

/* Add subtle animation to the Nastavi button arrow */
.btn-primary:hover:not(:disabled) .bi-arrow-right-circle-fill {
    animation: arrowPulse 0.6s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* Radio button group styling for article type selection */
.btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    color: white !important;
}

.btn-check + .btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-check:checked + .btn-outline-primary i {
    color: white !important;
}

.btn-check + .btn-outline-primary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

/* Add Article Page - Card Body Purple Theme */
.container .card .card-body {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 0 0 12px 12px;
}

/* Add Article Page - Card Header Purple Theme */
.container .card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px 12px 0 0;
}

.container .card .card-header h4 {
    color: #667eea;
    font-weight: 600;
}

/* Add Article - Card borders */
.container .card {
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

/* Progress bar container */
.progress {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

/* Step indicators */
.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: scale(1.05);
}

.step-indicator.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.step-indicator.current i {
    color: white !important;
}

.step-indicator i {
    font-size: 1.5rem;
}

/* Form labels with purple icons */
.form-label i.text-primary {
    color: #667eea !important;
}

.form-label i.text-warning {
    color: #f093fb !important;
}

.form-label i.text-info {
    color: #8b5cf6 !important;
}

.form-label i.text-success {
    color: #667eea !important;
}

.form-label i.text-danger {
    color: #f093fb !important;
}

/* ========================================
   MODERN STEPPER STYLES
   ======================================== */

.stepper-card {
    border: none !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.modern-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.stepper-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    background: white;
    border: 3px solid #e0e0e0;
    color: #9e9e9e;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Completed state */
.stepper-item.completed .stepper-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* Active state */
.stepper-item.active .stepper-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Pending state */
.stepper-item.pending .stepper-circle {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #bdbdbd;
}

/* Stepper line connecting circles */
.stepper-line {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
    transition: all 0.4s ease;
}

.stepper-item.completed .stepper-line {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stepper-item.active .stepper-line {
    background: linear-gradient(90deg, #667eea 0%, #e0e0e0 100%);
}

/* Stepper labels */
.stepper-label {
    margin-top: 12px;
    text-align: center;
}

.stepper-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #757575;
    transition: all 0.3s ease;
}

.stepper-item.active .stepper-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
}

.stepper-item.completed .stepper-title {
    color: #667eea;
    font-weight: 600;
}

/* Responsive stepper */
@media (max-width: 768px) {
    .stepper-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stepper-line {
        top: 25px;
    }

    .stepper-title {
        font-size: 0.75rem;
    }

    .stepper-item.active .stepper-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .stepper-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stepper-line {
        top: 22px;
        height: 2px;
    }

    .stepper-title {
        font-size: 0.7rem;
        margin-top: 8px;
    }

    .stepper-item.active .stepper-title {
        font-size: 0.75rem;
    }
}

/* ========================================
   IMAGE PREVIEW MODAL STYLES
   ======================================== */

.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-preview-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.preview-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.preview-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-close-btn {
    position: absolute;
    top: -50px;
    right: -10px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.preview-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.preview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.preview-nav-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-50%) scale(1.1);
}

.preview-prev-btn {
    left: -70px;
}

.preview-next-btn {
    right: -70px;
}

.preview-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Make image thumbnails clickable */
.image-preview img {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.image-preview img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Responsive adjustments for image preview modal */
@media (max-width: 768px) {
    .preview-close-btn {
        top: 10px;
        right: 10px;
        position: fixed;
    }

    .preview-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .preview-prev-btn {
        left: 10px;
        position: fixed;
    }

    .preview-next-btn {
        right: 10px;
        position: fixed;
    }

    .preview-counter {
        bottom: 20px;
        position: fixed;
    }

    .preview-image-container {
        max-width: 100vw;
        max-height: 80vh;
        padding: 10px;
    }

    .preview-image {
        max-height: 80vh;
    }
}

@media (max-width: 576px) {
    .preview-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .preview-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
