/* ============================================================
   TOOL PAGES STYLES (Upload Zone, File List, etc.)
   ============================================================ */

.tool-container {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.tool-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.tool-header {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(204, 0, 0, 0.03) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.12);
    border: 1px solid rgba(204, 0, 0, 0.1);
}

.tool-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}

.tool-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ——— Upload Area ——— */
.upload-area {
    padding: 4rem 2rem;
    text-align: center;
}

.drop-zone {
    border: 3px dashed #e0e0e0;
    border-radius: 20px;
    padding: 4rem 2rem;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--nav-bg);
    background: rgba(204, 0, 0, 0.02);
    transform: scale(1.01);
}

.drop-zone-icon {
    font-size: 3rem;
    color: var(--nav-bg);
    margin-bottom: 1.5rem;
    display: block;
}

.drop-zone-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}

.drop-zone-hint {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.file-input {
    display: none;
}

/* ——— File Preview List ——— */
.file-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.file-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    color: #ff4d4d;
    font-size: 1.2rem;
}

.file-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text);
}

.file-size {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.remove-file {
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-file:hover {
    color: #ff4d4d;
}

/* ——— Action Button ——— */
.action-container {
    margin-top: 3rem;
    display: none;
    /* Shown when files are selected */
}

.btn-execute {
    background: var(--nav-bg);
    color: white;
    padding: 16px 48px;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(204, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-execute:hover {
    background: var(--nav-bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(204, 0, 0, 0.35);
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
    .tool-title {
        font-size: 1.8rem;
    }

    .tool-subtitle {
        font-size: 0.95rem;
    }

    .drop-zone {
        padding: 3rem 1.5rem;
    }
}