body { font-family: sans-serif; max-width: 800px; margin: 40px auto; padding: 0 20px; line-height: 1.6; }
.container { border: 1px solid #ddd; padding: 20px; border-radius: 8px; background-color: #f9f9f9; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
h1 { color: #333; margin-top: 0; }
.form-group { margin-bottom: 20px; }

/* Drag & Drop Styles */
#drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #e7f3ff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    margin-bottom: 20px;
}
#drop-zone.dragover {
    background-color: #d0e7ff;
    border-color: #0056b3;
}
#drop-zone p {
    margin: 0;
    font-size: 1.1em;
    color: #0056b3;
}
#file-info {
    margin-top: 10px;
    font-weight: bold;
    color: #28a745;
    display: none;
}

input[type="file"] { display: none; }
input[type="submit"] { background-color: #007bff; color: white; border: none; padding: 12px 24px; border-radius: 4px; cursor: pointer; font-size: 1em; width: 100%; margin-top: 10px; }
input[type="submit"]:hover { background-color: #0056b3; }
input[type="submit"]:disabled { background-color: #ccc; cursor: not-allowed; }

.hidden { display: none !important; }

/* Table Styles */
.result-container { margin-top: 30px; }
.result-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.9em; }
.result-table th, .result-table td { border: 1px solid #ddd; padding: 10px; text-align: left; }
.result-table th { background-color: #f2f2f2; font-weight: bold; }
.result-table tr:nth-child(even) { background-color: #f9f9f9; }

#download-btn { 
    background-color: #28a745; 
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#download-btn:hover { 
    background-color: #218838; 
    box-shadow: 0 6px 12px rgba(33, 136, 56, 0.3);
    transform: translateY(-2px);
}
#download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 136, 56, 0.2);
}

#loading { text-align: center; margin: 20px 0; font-weight: bold; color: #007bff; }
.footer { margin-top: 40px; font-size: 0.8em; color: #666; text-align: center; }

.config-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #eee;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
}
.config-title { font-weight: bold; margin-bottom: 5px; border-bottom: 1px solid #ccc; padding-bottom: 3px; }
.config-item { display: flex; justify-content: space-between; margin-bottom: 2px; }

/* Web Settings Styles */
.settings-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 8px;
}
.settings-title {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.setting-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95em;
}
.setting-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
