/* ============================================
   PHARMACY ASA - COMPONENT STYLES
   ============================================
   Author: YRXJN
   Created: 10/28/2025
   Description: Styles for reusable components
   ============================================ */

/* ---- SYSTEM FOOTER STYLES ---- */
.system-footer {
    background: linear-gradient(to right, #2C5B73, #1a3a4a);
    color: #ffffff;
    padding: 15px 0;
    margin-top: auto;
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.system-footer p {
    margin-bottom: 0;
    line-height: 1.6;
}

.system-footer .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.system-footer .footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.system-footer .footer-link:hover {
    color: #E8B42E;
    border-bottom-color: #E8B42E;
}

/* System Footer - Mobile */
@media (max-width: 768px) {
    .system-footer {
        padding: 12px 0;
        font-size: 0.75rem;
    }

    .system-footer .col-md-6 {
        margin-bottom: 5px;
    }

    .system-footer .separator {
        margin: 0 5px;
    }
}

/* System Footer - Print */
@media print {
    .system-footer {
        background: #f8f9fa !important;
        color: #000 !important;
        border-top: 2px solid #dee2e6;
    }

    .system-footer .license-status {
        background: transparent !important;
        color: #000 !important;
    }
}

/* ---- PROFILE TAB STYLES ---- */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(44, 91, 115, 0.05);
    border-bottom-color: var(--accent-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent;
    border-bottom-color: var(--primary-color);
}

/* ---- DUE DILIGENCE STYLES ---- */
.due-diligence-section {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-preview-item {
    position: relative;
    width: 150px;
    height: 350px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.existing-images {
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
}

.state-license-item {
    background-color: white;
    transition: box-shadow 0.3s ease;
}

.state-license-item:hover {
    box-shadow: var(--shadow-md);
}

.state-license-item.bg-light {
    background-color: #f8f9fa !important;
}

.license-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.license-image-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.license-image-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.license-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.license-image-card:hover .license-image-overlay {
    opacity: 1;
}

.license-image-overlay .badge {
    position: absolute;
    top: 5px;
    right: 5px;
}

.license-preview-container {
    margin-top: 1rem;
}

.cursor-pointer {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cursor-pointer:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.document-card {
    background-color: white;
    transition: box-shadow 0.3s ease;
}

.document-card:hover {
    box-shadow: var(--shadow-md);
}

.document-card img {
    transition: transform 0.2s ease;
}

.document-card img:hover {
    transform: scale(1.02);
}

.current-doc-section {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* ---- LICENSE INFO CARD ---- */
.license-info-card {
    padding: 0.5rem 0;
}

.license-key-display {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2C5B73;
    font-weight: 600;
    border: 1px solid #dee2e6;
    flex: 1;
    margin-right: 10px;
}

/* ---- SWEETALERT2 CUSTOM STYLING ---- */
.swal2-popup {
    font-family: 'Poppins', sans-serif;
}

.swal2-title {
    color: var(--text-dark);
    font-weight: 600;
}

.swal2-html-container {
    color: var(--text-muted);
}

.swal2-confirm {
    font-weight: 500;
}

.swal2-cancel {
    font-weight: 500;
}

