/*
 * File: css/pdf-to-html.css
 * Description: Enterprise Styles for PDF to HTML - PREMIUM EDITION
 * Dependencies: tools.css
 */

.full-width-container {
    max-width: 1400px;
}

.converter-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 30px;
}

/* 🟢 GLASSMORPHISM UPGRADE */
.panel {
    /* Global Glass Variables */
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: all 0.3s ease;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(230, 81, 0, 0.15); /* Orange for HTML5 Brand */
    border-color: rgba(255,255,255,0.8);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Upload Area */
.upload-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    padding: 20px;
}

.upload-area:hover, .upload-area.dragover {
    background: rgba(230, 81, 0, 0.05);
    border-color: #e65100;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e65100;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.upload-subtext {
    color: #666;
    margin-bottom: 20px;
}

.divider {
    margin: 20px 0;
    display: flex;
    align-items: center;
    width: 100%;
    color: #999;
    font-size: 0.85rem;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.divider span {
    padding: 0 10px;
}

/* Cloud Buttons */
.cloud-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cloud-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.cloud-btn:hover {
    border-color: #e65100;
    color: #e65100;
    background: white;
}

/* File Card */
.file-details-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    animation: slideIn 0.3s ease;
}

.file-icon-large {
    font-size: 2.5rem;
}

.file-meta h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.file-meta p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.remove-file-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.remove-file-btn:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* Settings */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

.setting-item label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e65100;
    cursor: pointer;
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0,0,0,0.05);
    color: #666;
}

.status-badge.active {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
}

/* Empty State */
.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Action Area */
.process-actions {
    margin-top: auto;
}

.progress-wrapper {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: #e65100;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.privacy-note {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
    background: rgba(147, 112, 219, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(147, 112, 219, 0.1);
}

/* Notification Override (Top Center) */
#notification {
    top: 30px !important;
    bottom: auto !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-size: 1rem !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 300px !important;
    z-index: 99999 !important;
    animation: slideDownFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Responsive */
@media (max-width: 992px) {
    .converter-workspace {
        grid-template-columns: 1fr;
    }
    
    .panel {
        min-height: auto;
    }
}