body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
}

.center-box {
    margin: 100px auto;
    width: 300px;
    padding: 20px;
    border: 2px solid #fff;
    border-radius: 10px;
}

input[type="text"] {
    width: 80%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin: 10px 0;
}

button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: white;
}

.disabled {
    background-color: #555;
    cursor: not-allowed;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #fff;
    padding: 10px;
}

/* ===== PESTAÑAS ===== */
.tabs-container {
    width: 90%;
    margin: 20px auto;
}

.tabs-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
}

.tab-btn {
    padding: 12px 30px;
    background-color: #222;
    color: #aaa;
    border: 1px solid #444;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    transition: background-color 0.2s, color 0.2s;
}

.tab-btn:hover {
    background-color: #333;
    color: #fff;
}

.tab-btn.active {
    background-color: #111;
    color: #fff;
    border-color: #0b79d0;
    border-bottom: 2px solid #111;
}

.tab-badge {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    margin-left: 6px;
    vertical-align: middle;
}

.tab-badge.ok {
    background-color: #27ae60;
}

.tab-badge.active-badge {
    background-color: #27ae60;
    border-radius: 10px;
    width: auto;
    padding: 2px 8px;
    font-size: 11px;
}

.tab-hint {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: #888;
    margin-top: 2px;
}

.tab-btn.tab-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-content {
    display: none;
    border: 1px solid #444;
    border-top: 2px solid #0b79d0;
    padding: 20px;
    background-color: #111;
    border-radius: 0 0 8px 8px;
}

.tab-content.active {
    display: block;
}

/* ===== WRITEUP STATES ===== */
.writeup-state {
    padding: 30px;
    text-align: center;
}

.writeup-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.writeup-icon.ok {
    color: #27ae60;
}

.writeup-icon.expired {
    color: #e74c3c;
}

.writeup-locked h3 {
    color: #f39c12;
}

.writeup-locked p {
    color: #aaa;
}

.writeup-active h3 {
    color: #0b79d0;
}

.writeup-timer {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
    font-family: monospace;
}

/* WriteUp uploaded info */
.writeup-uploaded {
    background-color: #0a2a0a;
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.writeup-replace-hint {
    color: #888;
    font-size: 13px;
    font-style: italic;
}

/* ===== DROPZONE ===== */
.writeup-dropzone {
    border: 2px dashed #555;
    border-radius: 10px;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 500px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.writeup-dropzone:hover,
.writeup-dropzone.dragover {
    border-color: #0b79d0;
    background-color: #0a1a2a;
}

.dropzone-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.dropzone-hint {
    color: #888;
    font-size: 13px;
}

/* ===== PROGRESS BAR ===== */
.writeup-progress-container {
    max-width: 500px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.writeup-progress-bar {
    flex: 1;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
}

.writeup-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0b79d0, #27ae60);
    border-radius: 10px;
    transition: width 0.3s;
}

.writeup-progress-text {
    color: #aaa;
    font-size: 14px;
    min-width: 40px;
}

/* ===== SUBMIT BUTTON ===== */
.writeup-submit-btn {
    margin-top: 15px;
    padding: 12px 30px;
    background-color: #0b79d0;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.writeup-submit-btn:hover:not(:disabled) {
    background-color: #095a9d;
}

.writeup-submit-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* ===== STATUS MESSAGES ===== */
.writeup-status {
    margin: 10px auto;
    max-width: 500px;
    padding: 0;
    font-size: 14px;
    min-height: 20px;
}

.writeup-status.success {
    color: #27ae60;
    padding: 10px;
    background-color: #0a2a0a;
    border: 1px solid #27ae60;
    border-radius: 5px;
}

.writeup-status.error {
    color: #e74c3c;
    padding: 10px;
    background-color: #2a0a0a;
    border: 1px solid #e74c3c;
    border-radius: 5px;
}

/* Expired state */
.writeup-expired h3 {
    color: #aaa;
}
