/* merge.css - Merged with Theme Variables */

/* HERO & ALIGNMENT FIX */
.hero-section.center-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    text-align: center;
    padding: 20px;
}

.center-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px); /* Centers relative to the viewport */
    text-align: center;
}

.tool-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-main); /* Uses theme variable */
}

/* UPLOAD BOX */
.upload-container {
    background: var(--primary);
    color: white;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 80px 40px;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.3);
    transition: transform 0.2s;
}

.upload-container:hover { transform: scale(1.02); }

.upload-btn-main {
    background: white;
    color: var(--primary);
    border: none;
    padding: 15px 40px;
    font-weight: 800;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

/* PRIVACY NOTE */
.privacy-note {
    margin-top: 35px;
    font-size: 14px;
    color: var(--text-main); /* Adapts to theme */
    background: var(--bg-sidebar); /* Adapts to theme */
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color); /* Adapts to theme */
}

/* WORKSPACE */
.workspace-container { 
    display: flex; 
    height: calc(100vh - 75px); 
    background-color: var(--bg-page); 
}

.file-zone { 
    flex: 1; 
    padding: 40px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    background: var(--bg-zone); /* Adapts to theme */
    overflow-y: auto; 
    align-content: flex-start; 
}

.file-card {
    width: 160px; 
    height: 220px; 
    background: var(--card-bg); /* Adapts to theme */
    border: 1px solid var(--border-color); /* Adapts to theme */
    border-radius: 12px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding: 10px; 
    position: relative; 
    box-shadow: var(--shadow); /* Adapts to theme */
    cursor: grab;
}

.file-card.dragging { opacity: 0.5; border: 2px dashed var(--primary); }

.file-name {
    font-size: 11px; 
    margin-top: 15px; 
    width: 90%;
    text-align: center; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    color: var(--text-main); /* Adapts to theme */
}

.sidebar { 
    width: 320px; 
    background: var(--bg-sidebar); /* Adapts to theme */
    border-left: 1px solid var(--border-color); /* Adapts to theme */
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
}

.action-btn { 
    background: var(--primary); 
    color: white; 
    padding: 18px; 
    border: none; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    margin-top: auto; 
}

.action-btn:disabled { background: #fca5a5; cursor: not-allowed; }

.floating-add { 
    position: fixed; 
    bottom: 30px; 
    left: 30px; 
    width: 55px; 
    height: 55px; 
    background: var(--primary); 
    color: white; 
    border-radius: 50%; 
    border: none; 
    font-size: 28px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4); 
}

/* SUCCESS VIEW */
#success-view {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--bg-page); /* Adapts to theme */
    display: flex;
    align-items: center; 
    justify-content: center; 
    z-index: 2000; 
    backdrop-filter: blur(10px);
    opacity: 0.98;
}

.success-ring {
    width: 100px; 
    height: 100px; 
    background: #dcfce7; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0 auto 30px; 
    animation: pulse 2s infinite;
}

/* Animation for the success ring */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.success-actions { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

.btn-primary, .btn-outline { 
    padding: 14px 28px; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.btn-primary { background: var(--primary); color: white; border: none; }

.btn-outline { 
    background: var(--card-bg); /* Adapts to theme */
    color: var(--text-main); /* Adapts to theme */
    border: 2px solid var(--border-color); /* Adapts to theme */
}