/* Enhanced Tab Styling */
.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
    color: #112250;
}

.nav-tabs .nav-link:hover {
    background-color: #F5F0EA;
    border-color: #E7D3AE;
    color: #3B507D;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    border-color: #E7D3AE #E7D3AE #fff;
    font-weight: 600;
    color: #112250;
}

/* Tab Content Styling */
.tab-content {
    border: 1px solid #E7D3AE;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
}

/* Enhanced Table Scrolling */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(17, 34, 80, 0.1);
}

.table-responsive::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #F5F0EA;
    border-radius: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #E7D3AE;
    border-radius: 6px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #3B507D;
}

/* Sticky Header Enhancement */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #F5F0EA !important;
    box-shadow: 0 2px 4px rgba(17, 34, 80, 0.1);
}

/* Form Control Enhancements */
.form-control-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Card Enhancements */
.card {
    box-shadow: 0 2px 4px rgba(17, 34, 80, 0.1);
    border-radius: 8px;
}

.card-header {
    background-color: #F5F0EA;
    border-bottom: 1px solid #E7D3AE;
    border-radius: 8px 8px 0 0 !important;
    color: #112250;
}

/* Button Group Spacing */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* History Tab Placeholder Styling */
.text-center.text-muted {
    color: #6c757d !important;
}

.text-center.text-muted .fa-3x {
    opacity: 0.5;
}

/* Alert Enhancements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(17, 34, 80, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table-responsive {
        max-height: 60vh;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
}

/* Loading Indicator Enhancements */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Image Preview Enhancements */
img[style*="cursor: pointer"] {
    transition: transform 0.2s ease;
}

img[style*="cursor: pointer"]:hover {
    transform: scale(1.05);
}

/* Elegant Jewelry Image Preview Styling */
.jewelry-image-preview {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(30, 60, 114, 0.3);
    margin: 10px 0;
    overflow: hidden;
}

.jewelry-image-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/preview-background.png') center center/cover no-repeat;
    pointer-events: none;
    z-index: 1;
    /* animation: subtle-shimmer 8s ease-in-out infinite; */
}



.jewelry-image-container {
    position: relative;
/*    background: rgba(255, 255, 255, 0.95);*/
    border-radius: 12px;
    padding: 15px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
/*    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);*/
}

.jewelry-image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 65%;
    object-fit: contain;
   
/*    border-radius: 8px;*/
    transition: transform 0.3s ease;
    cursor: pointer;
}
.main-image {
    border-radius: 12px;
    border-style: solid;
    border-color: white;
    border-width: 10px;
}
.jewelry-image-container img:hover {
    transform: scale(1.02);
}

.jewelry-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 100px !important;
    height: 100px !important;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
    /*    background: rgba(255, 255, 255, 0.9);*/
    padding: 4px;
    border-radius: 6px;
    /*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);*/
}

.jewelry-logo:hover {
    opacity: 1;
/*    background: rgba(255, 255, 255, 1);*/
}

.jewelry-details {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-top: 15px;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    /* transition: all 0.3s ease; */
}

.jewelry-info-split {
    display: flex;
    min-height: 80px;
    color: #d4af37;
    font-family: 'Seibi Takanawa', serif;
}

.jewelry-title-section {
    flex: 1;
    background: transparent;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.jewelry-title {
    font-size: 30px !important;
    font-weight: 400;    
    margin: 0;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.5);
}

.jewelry-specs-section {
    flex: 1;
    background: transparent;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jewelry-specs {
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 18px !important;
    width: 100%;
    max-width: 500px;
}

.jewelry-spec-item {
    display: table-row;
}

.jewelry-spec-label {
    /*    font-family: 'The Postgates';*/
    display: table-cell;
    font-size: 25px !important;
    color: #d4af37;
/*    font-weight: 600;*/
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 8px 20px 8px 0;
    text-align: right;
    vertical-align: middle;
    width: 40%;
    /*    border-right: 1px solid rgba(212, 175, 55, 0.3);*/
}

.jewelry-spec-value {
    display: table-cell;
    font-family: 'Maison Neue', sans-serif;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 8px 0 8px 20px;
    text-align: left;
    vertical-align: middle;
    width: 60%;
}

.jewelry-price {
    font-family: 'Seibi Takanawa', serif;
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Compact jewelry preview for lists */
.jewelry-image-preview-compact {
    background: url('/assets/images/preview-background.png') center center/cover no-repeat;
    border-radius: 8px;
    padding: 8px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.2);
    position: relative;
    overflow: hidden;
}

.jewelry-image-preview-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;        
    pointer-events: none;
    
}

.jewelry-image-preview-compact img {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.jewelry-image-preview-compact img:hover {
    transform: scale(1.05);
}

/* Modal enhancements for jewelry preview */
.jewelry-modal .modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(30, 60, 114, 0.4);
}

.jewelry-modal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
}

.jewelry-modal .modal-title {
    font-family: 'Seibi Takanawa', serif;
    color: white;
    font-weight: 400;
}

.jewelry-modal .btn-close {
    filter: invert(1);
}

.jewelry-modal .modal-body {
    padding: 30px;
}

/* Tab Badge Styling */
.nav-link .badge {
    margin-left: 5px;
    font-size: 0.75rem;
}

/* Loading States */
.table-warning {
    background-color: rgba(231, 211, 174, 0.2) !important;
/*    transition: background-color 0.3s ease;*/
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(245, 240, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Global Loading Overlay */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 34, 80, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(17, 34, 80, 0.3);
    min-width: 200px;
    animation: slideIn 0.4s ease-out;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #3B507D;
}

.loading-message {
    font-size: 1.1rem;
    color: #112250;
    font-weight: 500;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Spinner Enhancements */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.spinner-border {
    animation: spinner-border 0.75s linear infinite;
    color: #3B507D;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State Styling */
.text-center.text-muted .fa-inbox {
    opacity: 0.3;
    color: #6c757d;
}

/* Disabled State Styling */
.form-control:disabled,
.form-select:disabled {
    background-color: #F5F0EA;
    opacity: 0.7;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E7D3AE;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(17, 34, 80, 0.1);
}

.timeline-content {
    margin-left: 20px;
}

.timeline-content .card {
    border-left: 3px solid #E7D3AE;
    box-shadow: 0 2px 8px rgba(17, 34, 80, 0.1);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Color Variants */
.timeline-marker.bg-success {
    background-color: #198754 !important;
}

.timeline-marker.bg-danger {
    background-color: #dc3545 !important;
}

.timeline-marker.bg-warning {
    background-color: #ffc107 !important;
}

.timeline-marker.bg-info {
    background-color: #3B507D !important;
}

.timeline-marker.bg-primary {
    background-color: #112250 !important;
}

.timeline-marker.bg-secondary {
    background-color: #6c757d !important;
} 