body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: auto;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

input[type="file"] {
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button {
    background-color: #1da1f2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0a85d9;
}

/* Center the progress bars */
#progress-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.progress-wrapper {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-wrapper .file-name {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.progress-bar {
    width: 100%;
    background-color: #e6e6e6;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #1da1f2;
    transition: width 0.2s ease;
}

.progress-status {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
}

.progress-wrapper.success .progress-bar-fill {
    background-color: #28a745;
}

.progress-wrapper.success .progress-status {
    color: #28a745;
}

.progress-wrapper.error .progress-bar-fill {
    background-color: #dc3545;
}

.progress-wrapper.error .progress-status {
    color: #dc3545;
}

/* Responsive grid for images */
#done-imgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.card-link {
    flex: 1 1 calc(25% - 20px); /* 4 images per row with space */
    margin: 10px;
    max-width: calc(25% - 20px);
    text-align: center;
}

.card-link img {
    width: 100%;
    height: auto;
    border: 2px solid gray;
    border-radius: 5px;
}

/* Advanced tab styling */
.collapsible {
    background-color: #1da1f2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    outline: none;
    font-size: 16px;
    margin-top: 20px;
}

.collapsible:hover {
    background-color: #0a85d9;
}

.collapsible:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    font-weight: bold;
}

.collapsible.active:after {
    content: "\2212"; /* Unicode character for "minus" sign (−) */
}

.content {
    padding: 10px 20px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    margin-top: 10px;
    border-radius: 5px;
    text-align: left;
}

.content input[type="text"],
.content input[type="number"],
.content input[type="color"] {
    margin: 5px 10px;
    padding: 8px;
    width: 80px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
}

.content label {
    margin: 5px 10px;
    display: inline-block;
    text-align: left;
    color: #333;
    vertical-align: middle;
}

.content input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
