/* ============================================
   PDF TOOLS PRO - ENTERPRISE 4-COLOR THEME
   Blue + Green + Red + Orange
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Primary Colors */
    --blue-50: #E3F2FD;
    --blue-100: #BBDEFB;
    --blue-500: #0288D1;
    --blue-600: #0277BD;
    --blue-700: #01579B;
    
    /* Success Colors */
    --green-50: #E8F5E9;
    --green-100: #C8E6C9;
    --green-500: #00C853;
    --green-600: #00B248;
    --green-700: #009624;
    
    /* Danger Colors */
    --red-50: #FFEBEE;
    --red-100: #FFCDD2;
    --red-500: #E53935;
    --red-600: #D32F2F;
    --red-700: #C62828;
    
    /* Warning Colors */
    --orange-50: #FFF3E0;
    --orange-100: #FFE0B2;
    --orange-500: #FF6F00;
    --orange-600: #E65100;
    --orange-700: #BF360C;
    
    /* Neutral */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F7 100%);
    color: var(--gray-800);
    margin: 0;
    min-height: 100vh;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 136, 209, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(2, 136, 209, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 136, 209, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* === SIDEBAR === */
.mega-sidebar {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-right: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.sidebar-logo {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
    color: white;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

.sidebar-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-section-title {
    padding: 16px 24px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-200), transparent);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--blue-50);
    color: var(--blue-600);
    border-left-color: var(--blue-500);
}

.menu-item.active {
    background: linear-gradient(90deg, var(--blue-50) 0%, transparent 100%);
    color: var(--blue-600);
    border-left-color: var(--blue-500);
    font-weight: 600;
}

.menu-item .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    transition: var(--transition);
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon {
    background: var(--blue-500);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

.menu-item .badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.badge-blue { background: var(--blue-100); color: var(--blue-700); }
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-orange { background: var(--orange-100); color: var(--orange-700); }
.badge-red { background: var(--red-100); color: var(--red-700); }

/* === TOP BAR === */
.top-bar {
    background: white;
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

/* === STAT CARDS (4 WARNA) === */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.blue::before { background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); }
.stat-card.green::before { background: linear-gradient(180deg, var(--green-500), var(--green-700)); }
.stat-card.orange::before { background: linear-gradient(180deg, var(--orange-500), var(--orange-700)); }
.stat-card.red::before { background: linear-gradient(180deg, var(--red-500), var(--red-700)); }

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.stat-card.blue .stat-icon { 
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    box-shadow: 0 8px 20px rgba(2, 136, 209, 0.3);
}
.stat-card.green .stat-icon { 
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.3);
}
.stat-card.orange .stat-icon { 
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.3);
}
.stat-card.red .stat-icon { 
    background: linear-gradient(135deg, var(--red-500), var(--red-700));
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.stat-card .stat-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stat-trend.up { background: var(--green-50); color: var(--green-700); }
.stat-trend.down { background: var(--red-50); color: var(--red-700); }
.stat-trend.neutral { background: var(--orange-50); color: var(--orange-700); }

/* === BUTTONS (4 WARNA) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Blue Button - Primary Action */
.btn-blue {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}
.btn-blue:hover {
    box-shadow: 0 6px 20px rgba(2, 136, 209, 0.4);
    transform: translateY(-2px);
}

/* Green Button - Success/Process */
.btn-green {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.btn-green:hover {
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
    transform: translateY(-2px);
}

/* Red Button - Danger/Delete */
.btn-red {
    background: linear-gradient(135deg, var(--red-500), var(--red-700));
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}
.btn-red:hover {
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
    transform: translateY(-2px);
}

/* Orange Button - Warning/Highlight */
.btn-orange {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}
.btn-orange:hover {
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
    transform: translateY(-2px);
}

/* Outline Buttons */
.btn-outline-blue {
    background: white;
    color: var(--blue-600);
    border: 2px solid var(--blue-500);
}
.btn-outline-blue:hover {
    background: var(--blue-50);
}

.btn-outline-red {
    background: white;
    color: var(--red-600);
    border: 2px solid var(--red-500);
}
.btn-outline-red:hover {
    background: var(--red-50);
}

.btn-outline-green {
    background: white;
    color: var(--green-600);
    border: 2px solid var(--green-500);
}
.btn-outline-green:hover {
    background: var(--green-50);
}

.btn-outline-orange {
    background: white;
    color: var(--orange-600);
    border: 2px solid var(--orange-500);
}
.btn-outline-orange:hover {
    background: var(--orange-50);
}

/* Button Sizes */
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-icon-only { padding: 12px; width: 44px; height: 44px; }

/* === DROP ZONE - FIXED: TOMBOL SELALU TERLIHAT === */
.drop-zone {
    background: white;
    border: 2px dashed var(--blue-500);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* ❌ HAPUS ATAU COMMENT baris ini kalau ada: */
/* .drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-50), transparent);
    opacity: 0;
    transition: var(--transition);
}

.drop-zone:hover::before {
    opacity: 1;
} */

.drop-zone:hover {
    border-color: var(--blue-600);
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

.drop-zone.drag-over {
    border-color: var(--green-500);
    background: var(--green-50);
    border-style: solid;
    animation: pulse-ring 1.5s infinite;
}

.drop-icon-wrapper {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
    z-index: 1; /* ⭐ PENTING: Icon di atas overlay */
}

.drop-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--green-500));
    opacity: 0.2;
    z-index: -1;
}

.drop-icon-wrapper i,
.drop-icon-wrapper .material-icons,
.drop-icon-wrapper .fa-solid {
    font-size: 44px;
    color: var(--blue-600);
    position: relative;
    z-index: 2;
}

/* ⭐ TOMBOL DI DROP ZONE SELALU TERLIHAT */
.drop-zone .btn,
.drop-zone button {
    position: relative;
    z-index: 10; /* ⭐ PENTING: Tombol di paling atas */
    pointer-events: auto;
}

.drop-zone h3,
.drop-zone p {
    position: relative;
    z-index: 5;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.card-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-title-icon.blue { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.card-title-icon.green { background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.card-title-icon.orange { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.card-title-icon.red { background: linear-gradient(135deg, var(--red-500), var(--red-700)); }

/* === TOOL CARDS (Dashboard Quick Access) === */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 2px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    display: block;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.tool-card .tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tool-card.blue:hover { border-color: var(--blue-500); }
.tool-card.green:hover { border-color: var(--green-500); }
.tool-card.orange:hover { border-color: var(--orange-500); }
.tool-card.red:hover { border-color: var(--red-500); }

.tool-card.blue .tool-icon { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.tool-card.green .tool-icon { background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.tool-card.orange .tool-icon { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.tool-card.red .tool-icon { background: linear-gradient(135deg, var(--red-500), var(--red-700)); }

.tool-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.tool-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.tool-card .tool-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--gray-300);
    transition: var(--transition);
}

.tool-card:hover .tool-arrow {
    transform: translateX(4px);
}

.tool-card.blue:hover .tool-arrow { color: var(--blue-500); }
.tool-card.green:hover .tool-arrow { color: var(--green-500); }
.tool-card.orange:hover .tool-arrow { color: var(--orange-500); }
.tool-card.red:hover .tool-arrow { color: var(--red-500); }

/* === TABLE === */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table thead th:first-child { border-radius: 12px 0 0 0; }
.data-table thead th:last-child { border-radius: 0 12px 0 0; }

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--blue-50);
}

.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success { background: var(--green-100); color: var(--green-700); }
.status-badge.error { background: var(--red-100); color: var(--red-700); }
.status-badge.warning { background: var(--orange-100); color: var(--orange-700); }
.status-badge.info { background: var(--blue-100); color: var(--blue-700); }

/* === FORMS === */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
}

/* === LOADER === */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-overlay.active {
    display: flex;
}

.loader-content {
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
}

.loader-spinner::before {
    border-top-color: var(--blue-500);
    border-right-color: var(--blue-500);
    animation: spin 1s linear infinite;
}

.loader-spinner::after {
    border-bottom-color: var(--green-500);
    border-left-color: var(--green-500);
    animation: spin 1.5s linear infinite reverse;
    inset: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.toast.success { background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.toast.error { background: linear-gradient(135deg, var(--red-500), var(--red-700)); }
.toast.warning { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.toast.info { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
}

/* === OPTION CARDS (Radio/Checkbox visual) === */
.option-card {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.option-card:hover {
    border-color: var(--blue-500);
    background: var(--blue-50);
}

.option-card.selected {
    border-color: var(--green-500);
    background: var(--green-50);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .mega-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 100;
    }
    .mega-sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
    }
}



/* ============================================
   UNIFIED DROP ZONE LAYOUT - ALL TOOLS
   ============================================ */

/* === PAGE HEADER === */
.tools-page-header {
    margin-bottom: 28px;
}

.tools-page-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #0F172A;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-page-header p {
    color: #64748B;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

/* === TOOL GRID LAYOUT === */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* === DROP ZONE UNIFIED === */
.unified-dropzone {
    background: #FFFFFF;
    border: 2px dashed #0288D1;
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.unified-dropzone:hover {
    border-color: #01579B;
    box-shadow: 0 10px 30px rgba(2, 136, 209, 0.1);
}

.unified-dropzone.drag-over {
    border-color: #00C853;
    background: #F0FDF4;
    border-style: solid;
    transform: scale(1.01);
}

.unified-dropzone .drop-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0288D1;
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

.unified-dropzone h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.unified-dropzone p {
    color: #64748B;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.unified-dropzone .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.unified-dropzone .drop-hint {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
}

.unified-dropzone .drop-hint span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === PREVIEW PANEL === */
.preview-panel {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #E2E8F0;
}

.preview-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.preview-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
    margin: 0;
}

.preview-panel-header .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FF6F00;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.preview-placeholder {
    border: 2px dashed #E2E8F0;
    border-radius: 14px;
    padding: 50px 20px;
    text-align: center;
    color: #94A3B8;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-placeholder i {
    font-size: 54px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.preview-placeholder p {
    font-weight: 600;
    margin: 0 0 4px 0;
}

.preview-placeholder small {
    font-size: 13px;
    opacity: 0.8;
}

/* === OPTIONS CARD === */
.options-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #E2E8F0;
    margin-top: 20px;
}

.options-card.hidden {
    display: none;
}

.options-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 16px 0;
}

/* === FILE LIST === */
.file-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #0288D1;
    background: #E3F2FD;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FFEBEE;
    color: #E53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.file-item-icon.green {
    background: #E8F5E9;
    color: #00C853;
}

.file-item-text {
    flex: 1;
    min-width: 0;
}

.file-item-text strong {
    display: block;
    font-size: 14px;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-text small {
    color: #64748B;
    font-size: 12px;
}

/* === ACTION BAR === */
.action-bar {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-bar .btn {
    flex: 1;
}

.action-bar .btn-primary {
    flex: 2;
}

/* === INFO CARDS ROW === */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .info-cards-row {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.info-card-icon.blue { background: #E3F2FD; color: #0288D1; }
.info-card-icon.green { background: #E8F5E9; color: #00C853; }
.info-card-icon.orange { background: #FFF3E0; color: #FF6F00; }
.info-card-icon.red { background: #FFEBEE; color: #E53935; }

.info-card-text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 2px;
}

.info-card-text small {
    color: #64748B;
    font-size: 12px;
}

/* === OPTION SELECTOR (Radio Cards) === */
.option-selector {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.option-selector.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.option-selector.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.option-selector.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
    .option-selector.cols-2,
    .option-selector.cols-3,
    .option-selector.cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

.option-item {
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #FFFFFF;
}

.option-item:hover {
    border-color: #0288D1;
    background: #E3F2FD;
}

.option-item.selected {
    border-color: #00C853;
    background: #E8F5E9;
}

.option-item input {
    display: none;
}

.option-item i {
    font-size: 26px;
    margin-bottom: 6px;
    display: block;
    color: #0288D1;
}

.option-item strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 3px;
}

.option-item small {
    font-size: 11px;
    color: #64748B;
    display: block;
}

/* === FORM INPUTS === */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #1E293B;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-color: #0288D1;
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

/* === PREVIEW GRID (Thumbnail) === */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.preview-thumb {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.preview-thumb:hover {
    border-color: #0288D1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 136, 209, 0.15);
}

.preview-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-thumb-label {
    background: linear-gradient(90deg, #0288D1, #00C853);
    color: white;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}