/* ===============================
   GLOBAL
=============================== */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2b1055, #4b2c82, #7597de);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* ===============================
   HEADINGS
=============================== */
h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 32px;
}

.sub {
    text-align: center;
    color: #e6e6ff;
    margin-bottom: 22px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

h2 {
    margin: 18px 0 8px;
    color: #4a148c;
    font-size: 22px;
}

h3 {
    margin: 14px 0 6px;
    color: #5e35b1;
    font-size: 18px;
}

/* ===============================
   CARDS
=============================== */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h2 {
    margin-top: 0;
}

.hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* ===============================
   INPUTS & BUTTONS
=============================== */
input[type="file"] {
    padding: 6px;
    margin-top: 6px;
}

button {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #ffffff;
    cursor: pointer;
    margin: 8px 6px 0;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* ===============================
   LOADER
=============================== */
.loader {
    text-align: center;
    margin: 18px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* ===============================
   RESULT CONTAINER
=============================== */
.result {
    background: #ffffff;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===============================
   TABLES
=============================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 16px;
    font-size: 14px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    vertical-align: top;
}

th {
    background: linear-gradient(135deg,#6a1b9a,#4527a0);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
}

td {
    background: #fafafa;
}

/* ===============================
   LISTS
=============================== */
ul {
    margin: 6px 0 12px 22px;
    padding: 0;
}

li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ===============================
   PROGRESS BAR
=============================== */
.progress {
    background: #e0e0e0;
    border-radius: 20px;
    margin: 8px 0 14px;
    height: 22px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #ffffff;
    height: 100%;
    border-radius: 20px;
    text-align: center;
    font-size: 13px;
    line-height: 22px;
    font-weight: 500;
}

/* ===============================
   ERROR / DEBUG
=============================== */
details {
    margin-top: 10px;
}

pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    max-height: 200px;
    overflow: auto;
    font-size: 12px;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    table {
        font-size: 13px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }
}
/* ================= TAB STYLES ================= */

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    border: none;
    padding: 10px 18px;
    margin: 4px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #4a148c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.placeholder {
    text-align: left;
}

.placeholder ul {
    margin-left: 20px;
}

.coming {
    margin-top: 12px;
    color: #d84315;
    font-weight: bold;
}

.hint {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}
