﻿body {
    background-color: #f8f9fa;
}

.image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

    .image-wrapper:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

        .image-wrapper:hover .image-caption,
        .image-wrapper:hover .quick-actions {
            display: block;
        }

    .image-wrapper img {
        transition: transform 0.3s ease;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .image-wrapper:hover img {
        transform: scale(1.02);
    }

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 12px;
    font-size: 0.9rem;
    
}

.doc-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

    .doc-status.pending {
        background: #f59e0b;
        color: white;
    }

.doc-type {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* Quick Actions Dropdown */
.quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display :none;
}

.action-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    color: #374151;
}

    .action-dropdown:hover {
        background: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 8px;
    min-width: 160px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f3f4f6;
        transform: translateX(2px);
    }

    .dropdown-item i {
        width: 16px;
        margin-right: 8px;
    }

/* Full Screen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(4px);
}

    .fullscreen-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from

{
    opacity: 0;
}

to {
    opacity: 1;
}

}
@media(max-width: 768px) {
    .image-caption{
        display:block
    }
    .quick-actions {
        display: block
    }
}

.modal-image-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: grab;
}

    .modal-image.dragging {
        cursor: grabbing;
    }

.close-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 10000;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

.zoom-controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

    .zoom-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.image-info {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 300px;
    font-size: 0.875rem;
}

/* Search and header improvements */
.page-header {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.add-btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

    .add-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

.search-form {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border-radius: 12px!important;
    border: 1px solid #e5e7eb!important;
    padding: 12px 16px!important;
    transition: all 0.2s ease!important;
}

    .form-control:focus, .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
