body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    padding: 20px;
    line-height: 1.5;
}

.container {
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
    color: #1c1e21;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 25px;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #606770;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 95%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccd0d5;
    font-size: 14px;
}

button {
    background-color: #1877f2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
    width: 100%;
}

button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #166fe5;
}

.hidden {
    display: none !important;
}

.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-section {
    margin-bottom: 25px;
}

#log-output {
    background-color: #1d2129;
    color: #fff;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    height: 400px;
    overflow-y: scroll;
}

#results {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    background-color: #f7f7f7;
}

#results a {
    display: inline-block;
    margin: 5px;
    background-color: #42b72a;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
}

.frame-row,
.banner-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.frame-row label,
.banner-list-item .banner-name {
    flex-grow: 1;
    padding-right: 10px;
}

.frame-row input {
    width: 100px;
}

.controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-header h3 {
    margin-top: 0;
    border: none;
}

.controls-header .buttons {
    display: flex;
    gap: 15px;
}

.controls-header button {
    width: 60px;
    font-size: 16px;
    margin-top: 0;
    padding: 5px 10px;
}

.add-btn {
    background-color: #28a745;
}

.remove-btn {
    background-color: #dc3545;
}

.specific-frames-btn {
    width: auto;
    font-size: 12px;
    color: #1c1e21;
    background-color: #3288d6;
    padding: 2px 8px;
    margin: 0 5px;
    margin-top: 0;
}

.frames-override {
    display: block;
    width: 100%;
    margin-left: 30px;
    margin-top: 10px;
    border-left: 2px solid #007bff;
    padding-left: 15px;
}

.frames-override.hidden {
    display: none !important;
}

.frames-override textarea {
    height: 80px;
    font-family: monospace;
}

.specific-frames-controls {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.specific-frames-controls button {
    width: 30px;
    /* Smaller buttons */
    height: 30px;
    padding: 0;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.specific-frames-list .frame-row {
    padding: 4px 0;
    /* Tighter spacing */
}

.specific-frames-list .frame-row label {
    font-size: 13px;
    /* Smaller labels */
    margin-top: 0;
}

.specific-frames-list .frame-row input {
    width: 80px;
    padding: 6px;
    font-size: 13px;
}

.isi-options {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.isi-options label {
    display: inline-block;
    margin-top: 0;
    margin-right: 15px;
    font-weight: normal;
}

.isi-options input[type="radio"] {
    margin-right: 5px;
}

#banner-preview-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

#preview-container {
    position: relative;
    width: 300px;
    height: 250px;
}

#banner-preview iframe {
    border: 1px solid #ccc;
    background-color: white;
    display: block;
}

.preview-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    width: 300px;
}

.preview-controls button {
    width: 80px;
    height: 32px;
    font-size: 13px;
    padding: 0;
    margin-top: 0;
}

.preview-controls > div {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

#preview-timer {
    font-family: monospace;
    font-size: 28px;
    font-weight: bold;
    color: #1877f2;
    font-variant-numeric: tabular-nums;
}

#timeline-slider-container {
    width: 100%;
    padding: 5px 0;
}

#timeline-slider {
    width: 100%;
    margin: 0;
}

#refresh-preview-btn {
    width: auto;
    font-size: 14px;
    padding: 5px 12px;
    margin-top: 0;
    background-color: #6c757d;
}

#project-info {
    margin-top: 25px;
    padding: 10px;
    background-color: #e7f3ff;
    border: 1px solid #bddcff;
    border-radius: 6px;
    word-wrap: break-word;
}

#preview-banner-type {
    font-size: 12px;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    margin-top: 10px;
    width: 300px;
    text-align: center;
}

#preview-error {
    border: 1px dashed #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

#reset-button-2 {
    margin-top: 0;
}