/* ================================================
   Comedy Agent — 公共样式
   ================================================ */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* Header */
header {
    background: #1a1a2e;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header h1 { font-size: 1.25rem; font-weight: 600; }
header a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}
header a:hover { opacity: 1; }

/* Modal system */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    width: 520px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.modal-box h3 { margin: 0; font-size: 1rem; }
.modal-box input,
.modal-box select,
.modal-box textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    font-family: inherit;
}
.modal-box textarea { resize: vertical; min-height: 100px; }
.modal-box .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.modal-box .modal-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
}
.modal-box .modal-actions .btn-cancel { background: #e0e0e0; color: #333; }
.modal-box .modal-actions .btn-save { background: #1a1a2e; color: #fff; }

/* Empty state */
.empty {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Status badge */
.status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e94560;
    color: #fff;
}
.status.ready { background: #16c79a; }
