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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background-color: #FFD700;
    text-align: center;
    padding: 15px;
    border: 2px solid #000;
    position: relative;
}

.header h1 {
    font-size: 20px;
    font-weight: bold;
}

.data-management-link {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.data-management-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.completion-status {
    margin-top: 10px;
}

/* Back Button */
.back-button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: #5a6268;
}

/* Save Button */
.save-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.save-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.header h1 {
    font-size: 20px;
    font-weight: bold;
}

/* Info Section */
.info-section {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid #000;
}

.info-row:last-child {
    border-bottom: 2px solid #000;
}

.info-row label {
    background-color: white;
    padding: 10px;
    border-right: 1px solid #000;
    font-weight: bold;
}

.info-row input {
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* Data Info Section */
.data-info-section {
    background-color: #e8f4f8;
    padding: 12px 20px;
    margin: 15px 0;
    border: 2px solid #2196F3;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    color: #1976D2;
}

/* Party Section */
.party-section {
    margin-top: 15px;
}

.party-header {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border: 2px solid #000;
    border-bottom: 1px solid #000;
}

.party1-header {
    background-color: #ADD8E6;
}

.party2-header {
    background-color: #90EE90;
}

/* Table */
.party-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
    border-top: none;
}

.party-table th {
    background-color: #e0e0e0;
    padding: 8px;
    border: 1px solid #000;
    font-weight: bold;
    text-align: center;
}

.party-table td {
    padding: 5px;
    border: 1px solid #000;
    text-align: center;
}

/* Column widths */
.col-순번 {
    width: 60px;
}

.col-닉네임 {
    width: 180px;
}

.col-직업 {
    width: 150px;
}

.col-비고 {
    width: auto;
}

.col-경고 {
    width: 150px;
}

/* Inputs and Selects */
.nickname-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
}

.job-input,
.remark-input,
.warning-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.job-input {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.remark-input,
.warning-input {
    border: 1px solid #ddd;
}

/* Loading and Error */
.loading,
.error {
    text-align: center;
    padding: 20px;
    margin: 20px;
}

.loading {
    color: #666;
    display: none;
}

.error {
    color: #d32f2f;
    display: none;
    background-color: #ffebee;
    border: 1px solid #d32f2f;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .party-table {
        font-size: 12px;
    }
    
    .col-닉네임 {
        width: 140px;
    }
    
    .col-직업 {
        width: 100px;
    }
}
