/* =========================================================
   Polika Platform - Admin Product Form & Modal Styles
   Modular, Responsive, Mobile-First Design
   ========================================================= */

/* --- Modal Base Overrides for Product Modal --- */
#product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px;
    box-sizing: border-box;
}

#product-modal .modal-content,
.product-modal-dialog {
    background: #18181a;
    border-radius: 20px;
    width: 95vw;
    max-width: 1100px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.05);
    position: relative;
    padding: 1.75rem;
    color: #f5f5f7;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#product-modal .modal-content::-webkit-scrollbar {
    width: 6px;
}

#product-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* --- Modal Header --- */
.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}

.product-modal-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-modal-header-title .header-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-color, #00f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-modal-header-title h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.product-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.product-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

/* --- Segmented Tabs Navigation --- */
.product-modal-tabs {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.product-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 44px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #8e8e93;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.product-tab-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.product-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.product-tab-btn.active {
    background: rgba(0, 240, 255, 0.14);
    color: var(--accent-color, #00f0ff);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.15);
}

.product-tab-btn.active i {
    transform: scale(1.1);
}

/* --- Tab Content Animations --- */
.product-tab-pane {
    display: none;
    animation: tabSlideFade 0.28s ease-out;
}

.product-tab-pane.active {
    display: block;
}

@keyframes tabSlideFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Form Grids --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.form-grid-2 .form-field-group {
    margin-bottom: 0;
}

.form-field-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #d1d1d6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-field-group label .label-hint {
    font-size: 0.78rem;
    color: #8e8e93;
    font-weight: normal;
}

.form-field-group .form-control {
    width: 100%;
    box-sizing: border-box;
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #ffffff;
    min-height: 46px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-field-group .form-control:focus {
    outline: none;
    border-color: var(--accent-color, #00f0ff);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
    background: #18181b;
}

.form-field-group .form-control::placeholder {
    color: #55555d;
}

.form-field-group textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-field-group select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%238e8e93' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* --- Input Group with Prefix / Actions --- */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-badge {
    position: absolute;
    left: 12px;
    color: var(--accent-color, #00f0ff);
    font-weight: 700;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.input-with-prefix .form-control {
    padding-left: 42px;
}

.input-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-action-group .form-control {
    flex: 1;
}

.btn-input-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-input-action:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
    color: var(--accent-color, #00f0ff);
}

.btn-input-action:active {
    transform: scale(0.97);
}

/* --- Interactive Toggle Cards (Variants & Parts) --- */
.interactive-toggle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.interactive-toggle-card:has(input[type="checkbox"]:checked) {
    background: rgba(0, 240, 255, 0.02);
    border-color: rgba(0, 240, 255, 0.25);
}

.toggle-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toggle-card-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    padding-right: 12px;
}

.toggle-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-card-title i {
    color: var(--accent-color, #00f0ff);
    font-size: 0.9rem;
}

.toggle-card-sub {
    font-size: 0.8rem;
    color: #8e8e93;
    line-height: 1.4;
}

/* Custom Switch Styling */
.switch-control {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333336;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.switch-control input:checked + .switch-slider {
    background-color: var(--accent-color, #00f0ff);
}

.switch-control input:checked + .switch-slider:before {
    transform: translateX(22px);
    background-color: #000000;
}

/* Toggle Expandable Container */
.toggle-expandable-content {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Variant & Part Rows (Optimized Clean Cards) --- */
.variant-card-item {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.variant-card-item:hover {
    border-color: rgba(0, 240, 255, 0.25);
    background: #17171b;
}

/* Header Row: Option Name + Delete Button */
.variant-header-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

.variant-name-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.variant-label-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #a1a1a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.variant-label-tag i {
    color: var(--accent-color, #00f0ff);
    font-size: 0.75rem;
}

.variant-card-item .variant-name {
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.92rem;
    min-height: 44px;
    transition: all 0.2s ease;
}

.variant-card-item .variant-name:focus {
    outline: none;
    border-color: var(--accent-color, #00f0ff);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

/* Controls Row: Stock Qty (Left) + Variant Photo (Right) */
.variant-controls-row {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
}

.variant-stock-col,
.variant-image-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.variant-sub-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #a1a1a6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.variant-card-item .variant-stock {
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px 10px 38px;
    color: #ffffff;
    font-size: 0.92rem;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.variant-card-item .variant-stock:focus {
    outline: none;
    border-color: var(--accent-color, #00f0ff);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

/* Variant Image Uploader Layout */
.variant-image-uploader {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.variant-img-upload-btn {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e5e5ea;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.variant-img-upload-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-color, #00f0ff);
    border-color: rgba(0, 240, 255, 0.35);
}

.variant-img-preview-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: #1c1c20;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.variant-img-preview-box:hover {
    border-color: var(--accent-color, #00f0ff);
    transform: scale(1.05);
}

.variant-img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-card-remove {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
    border-radius: 10px;
    color: #ff453a;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-card-remove:hover {
    background: #ff3b30;
    color: #ffffff;
    border-color: #ff3b30;
    transform: scale(1.05);
}

/* Part Item Card */
.part-card-item {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.part-card-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.part-card-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.part-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-color, #00f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.part-card-item .part-name {
    flex: 1;
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    min-height: 40px;
}

/* Add Option / Add Part Button */
.btn-add-item-dashed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #d1d1d6;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-add-item-dashed:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent-color, #00f0ff);
    color: var(--accent-color, #00f0ff);
}

/* --- Image Upload Dropzone & Gallery Grid --- */
.product-image-dropzone {
    border: 2px dashed rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.02);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.product-image-dropzone:hover,
.product-image-dropzone.dragover {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--accent-color, #00f0ff);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.product-image-dropzone .dropzone-icon {
    font-size: 2.2rem;
    color: var(--accent-color, #00f0ff);
    margin-bottom: 8px;
}

.product-image-dropzone .dropzone-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.product-image-dropzone .dropzone-subtitle {
    font-size: 0.8rem;
    color: #8e8e93;
}

/* Existing & New Images Gallery Grid */
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gallery-thumb-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #141416;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-card .badge-primary-cover {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 240, 255, 0.85);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-thumb-card .btn-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.9);
    color: #ffffff;
    border: none;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.gallery-thumb-card .btn-thumb-remove:hover {
    transform: scale(1.15);
    background: #ff3b30;
}

/* --- Modal Footer & Step Actions --- */
.product-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.product-modal-footer .footer-left-actions {
    display: flex;
    gap: 8px;
}

.product-modal-footer .footer-right-actions {
    display: flex;
    gap: 10px;
}

.btn-form-cancel {
    padding: 12px 20px;
    min-height: 48px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #a1a1a6;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-form-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-step-nav {
    padding: 12px 18px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f5f5f7;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-step-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-form-save {
    padding: 12px 28px;
    min-height: 48px;
    background: linear-gradient(135deg, #00f0ff 0%, #00a3ff 100%);
    border: none;
    border-radius: 10px;
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-form-save:hover {
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.45);
    transform: translateY(-1px);
}

.btn-form-save:active {
    transform: translateY(0);
}

.btn-form-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* =========================================================
   Mobile Viewport Breakpoints & Optimizations
   ========================================================= */

@media (max-width: 640px) {
    #product-modal {
        padding: 6px;
        align-items: flex-end;
    }

    #product-modal .modal-content,
    .product-modal-dialog {
        padding: 1.15rem 0.9rem;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
        max-width: 100%;
        width: 100%;
    }

    .product-modal-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .product-modal-header-title h3 {
        font-size: 1.15rem;
    }

    .product-modal-tabs {
        padding: 3px;
        gap: 4px;
        margin-bottom: 1.15rem;
    }

    .product-tab-btn {
        padding: 8px 6px;
        font-size: 0.8rem;
        gap: 5px;
        min-height: 40px;
    }

    .product-tab-btn i {
        font-size: 0.9rem;
    }

    /* Stack all form grids on mobile */
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .form-field-group {
        margin-bottom: 1rem;
    }

    .form-field-group .form-control {
        font-size: 16px; /* Prevents auto-zoom on iOS */
        padding: 10px 12px;
        min-height: 44px;
    }

    /* Mobile Variant Item Card */
    .variant-controls-row {
        grid-template-columns: 1fr 1.2fr;
        gap: 8px;
    }

    @media (max-width: 420px) {
        .variant-controls-row {
            grid-template-columns: 1fr;
            gap: 10px;
        }
    }

    /* Mobile Action Group (SKU & Barcode) */
    .input-action-group {
        gap: 6px;
    }

    .btn-input-action {
        padding: 0 12px;
        font-size: 0.82rem;
    }

    /* Mobile Footer */
    .product-modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
        padding-top: 1rem;
        margin-top: 1.25rem;
    }

    .product-modal-footer .footer-left-actions,
    .product-modal-footer .footer-right-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .btn-form-cancel,
    .btn-step-nav,
    .btn-form-save {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* =========================================================
   3D Print Files & Multi-Plate Card Styles
   ========================================================= */

.print-files-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.print-files-tab-intro {
    flex: 1;
    min-width: 250px;
}

.print-files-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-files-subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: #8e8e93;
    line-height: 1.4;
}

.btn-add-plate-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    color: var(--accent-color, #00f0ff);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-plate-header:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

/* Batch Dropzone */
.print-file-batch-dropzone {
    background: rgba(0, 0, 0, 0.25);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
}

.print-file-batch-dropzone:hover,
.print-file-batch-dropzone.dragover {
    border-color: var(--accent-color, #00f0ff);
    background: rgba(0, 240, 255, 0.04);
}

.print-file-batch-dropzone .dropzone-icon {
    font-size: 1.8rem;
    color: var(--accent-color, #00f0ff);
    margin-bottom: 6px;
}

.print-file-batch-dropzone .dropzone-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.print-file-batch-dropzone .dropzone-subtitle {
    font-size: 0.8rem;
    color: #8e8e93;
}

/* Empty State */
.print-plates-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #8e8e93;
    margin-bottom: 1rem;
}

.print-plates-empty i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.print-plates-empty p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0;
    color: #d1d1d6;
}

.print-plates-empty small {
    font-size: 0.8rem;
    color: #636366;
}

/* Plate Cards List */
.print-plates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.print-plate-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.print-plate-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.plate-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plate-number-badge {
    padding: 3px 10px;
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-color, #00f0ff);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.plate-title-input {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 38px;
}

.plate-title-input:focus {
    border-color: var(--accent-color, #00f0ff);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.btn-plate-remove {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.25);
    color: #ff453a;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-plate-remove:hover {
    background: rgba(255, 59, 48, 0.25);
    color: #ffffff;
    transform: scale(1.05);
}

/* Plate File Upload / Status Box */
.plate-file-status-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.plate-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.plate-file-ext-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ext-3mf {
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
}

.ext-gcode, .ext-bgcode {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #34c759;
}

.ext-stl {
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.4);
    color: #ff9500;
}

.ext-step, .ext-stp {
    background: rgba(175, 82, 222, 0.15);
    border: 1px solid rgba(175, 82, 222, 0.4);
    color: #af52de;
}

.ext-other {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d1d6;
}

.plate-file-meta {
    overflow: hidden;
}

.plate-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.plate-file-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.plate-size-badge {
    font-size: 0.75rem;
    color: #8e8e93;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.plate-status-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.status-badge-saved {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.status-badge-new {
    background: rgba(255, 214, 10, 0.15);
    color: #ffd60a;
}

.plate-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-plate-download {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-plate-download:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color, #00f0ff);
}

.btn-plate-pick-file {
    padding: 6px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    color: var(--accent-color, #00f0ff);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-plate-pick-file:hover {
    background: rgba(0, 240, 255, 0.2);
}

/* Plate Metadata Grid */
.plate-fields-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.plate-field-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plate-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plate-field-label i {
    color: var(--accent-color, #00f0ff);
    font-size: 0.75rem;
}

.plate-field-input {
    font-size: 0.85rem;
    padding: 6px 10px;
    min-height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
}

.plate-field-input:focus {
    border-color: var(--accent-color, #00f0ff);
    outline: none;
}

.plate-notes-textarea {
    font-size: 0.85rem;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    resize: vertical;
    min-height: 52px;
}

.plate-notes-textarea:focus {
    border-color: var(--accent-color, #00f0ff);
    outline: none;
}

/* Details Modal Plate Card Item */
.details-plate-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.details-plate-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.details-plate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
}

.details-plate-tag {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: #d1d1d6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.details-plate-notes {
    font-size: 0.82rem;
    color: #a1a1a6;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.4;
    border-left: 2px solid var(--accent-color, #00f0ff);
}

/* Responsive adjustments for 3D Print File plates */
@media (max-width: 768px) {
    .plate-fields-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .plate-fields-grid-4 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .plate-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .plate-file-status-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .plate-file-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =========================================================
   Designer Work Files (Source CAD) Specific Styles
   ========================================================= */

.ext-f3d, .ext-blend, .ext-sldprt {
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.4);
    color: #ff9500;
}

.ext-zip, .ext-rar, .ext-7z {
    background: rgba(255, 45, 85, 0.15);
    border: 1px solid rgba(255, 45, 85, 0.4);
    color: #ff2d55;
}

.ext-pdf, .ext-dwg, .ext-dxf {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.4);
    color: #0a84ff;
}

.badge-uploader-designer {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-uploader-admin {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-color, #00f0ff);
    border: 1px solid rgba(0, 240, 255, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.workfile-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.workfile-card:hover {
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.workfile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workfile-uploader-select {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    min-height: 36px;
}

.workfile-uploader-select:focus {
    border-color: #ff9500;
    outline: none;
}

/* =========================================================
   Product Details Fullscreen & Clean Dashboard Layout Styles
   ========================================================= */

.product-fullscreen-modal {
    padding: 12px !important;
}

.details-fullscreen-dialog {
    width: 96vw !important;
    max-width: 1440px !important;
    height: 94vh !important;
    max-height: 96vh !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 240, 255, 0.05) !important;
    overflow: hidden !important;
    color: #f5f5f7;
}

/* Modal Header */
.details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.details-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.details-header-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-color, #00f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.details-header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.details-header-title-row h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.details-status-pill {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-approved {
    background: rgba(40, 167, 69, 0.2);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.4);
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd60a;
    border: 1px solid rgba(255, 214, 10, 0.4);
}

.status-revision {
    background: rgba(255, 149, 0, 0.2);
    color: #ff9f0a;
    border: 1px solid rgba(255, 159, 10, 0.4);
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.4);
}

.details-header-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.details-meta-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #a1a1a6;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.details-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.details-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Grid Container */
.details-grid-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin: 1rem 0;
}

/* Left Sidebar */
.details-left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.details-left-sidebar::-webkit-scrollbar {
    width: 5px;
}

.details-left-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.details-hero-image-card {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.details-hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.details-hero-image-card img:hover {
    transform: scale(1.03);
}

.details-no-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #636366;
    font-size: 0.85rem;
}

.details-no-img-placeholder i {
    font-size: 2.2rem;
    opacity: 0.5;
}

.details-thumbnails-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.details-thumb-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: cover;
    background: #000;
    opacity: 0.65;
    transition: all 0.2s ease;
}

.details-thumb-img:hover {
    opacity: 0.9;
}

.details-thumb-img.active {
    border-color: var(--accent-color, #00f0ff);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.details-info-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px;
}

.details-info-header h5 {
    margin: 0 0 8px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-desc-box {
    color: #d1d1d6;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 130px;
    overflow-y: auto;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color, #00f0ff);
    margin-bottom: 10px;
    white-space: pre-wrap;
    scrollbar-width: thin;
}

.details-quick-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.details-spec-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.details-spec-item .spec-label {
    font-size: 0.72rem;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 4px;
}

.details-spec-item .spec-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}

/* Right Content: Files & Production Center */
.details-right-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.details-files-sections-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.details-file-section-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    overflow: hidden;
}

.details-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.details-section-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.94rem;
    color: #ffffff;
}

.details-section-subtext {
    font-size: 0.76rem;
    color: #8e8e93;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.details-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.pill-orange {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.pill-cyan {
    color: var(--accent-color, #00f0ff);
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.details-cards-scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.details-cards-scroll-area::-webkit-scrollbar {
    width: 5px;
}

.details-cards-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Footer Actions */
.details-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.details-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action-revision {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.35);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-revision:hover {
    background: rgba(255, 193, 7, 0.25);
    color: #ffe066;
}

.btn-action-reject {
    background: rgba(220, 53, 69, 0.15);
    color: #ff453a;
    border: 1px solid rgba(220, 53, 69, 0.35);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-reject:hover {
    background: rgba(220, 53, 69, 0.25);
    color: #ff6961;
}

.btn-action-approve {
    background: rgba(40, 167, 69, 0.2);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.4);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(48, 209, 88, 0.15);
}

.btn-action-approve:hover {
    background: rgba(40, 167, 69, 0.35);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.3);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .details-grid-container {
        grid-template-columns: 320px 1fr;
        gap: 14px;
    }

    .details-files-sections-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        overflow-y: auto;
    }

    .details-file-section-panel {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .details-fullscreen-dialog {
        width: 98vw !important;
        height: 98vh !important;
        padding: 1rem !important;
    }

    .details-grid-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .details-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .details-footer-right {
        justify-content: space-between;
    }
}


