@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 16px;
}

.csv-tool-wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.12), 0 0 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease;
}

/* Badge Pulse Animation */
.privacy-badge-container {
    text-align: center;
    margin-bottom: 25px;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Modern Animated Dropzone */
.dropzone {
    border: 2px dashed #c7d2fe;
    background: #f8fafc;
    border-radius: 14px;
    padding: 45px 25px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone:hover {
    border-color: var(--primary);
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(79, 70, 229, 0.15);
}

.dropzone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}

.dropzone-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.dropzone:hover .dropzone-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Cards & Grid Design */
.grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.option-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.option-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.option-card h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 14px;
    font-weight: 700;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
    cursor: pointer;
}

.styled-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 6px;
    outline: none;
    transition: border 0.2s;
}

.styled-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Button & Animations */
.btn-submit {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -6px rgba(79, 70, 229, 0.4);
}

.file-info-bar {
    background: #e0e7ff;
    color: #3730a3;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}