@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;700;800&display=swap');

.combine-admin-page {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background-color: #fdfaf7;
    color: #4a423d;
    min-height: 100vh;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.admin-wrapper {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.combine-admin-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid #eee1d5;
    box-shadow: 0 10px 30px rgba(74, 66, 61, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f5f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #352f2b;
}

.generator-section .form-group {
    margin-bottom: 20px;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8e7f75;
    margin-bottom: 8px;
    display: block;
}

input,
select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e9e0d8;
    background: #faf7f2;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: #d4a373;
    background: #fff;
}

.serial-display {
    background: #352f2b;
    color: #d4a373;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
}

.serial-display:hover::after {
    content: 'Å¬¸¯ÇÏ¿© º¹»ç';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a423d;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-generate {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: #d4a373;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-generate:hover:not(:disabled) {
    background: #bc8a5f;
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.generator-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #a39389;
    line-height: 1.5;
}

.generator-message {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #8e7f75;
}

.log-section {
    display: flex;
    flex-direction: column;
    height: 750px;
}

.serial-section {
    display: flex;
    flex-direction: column;
    max-height: 420px;
}

.serial-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.serial-table {
    width: 100%;
    border-collapse: collapse;
}

.serial-table th {
    position: sticky;
    top: 0;
    background: #faf7f2;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.85rem;
    color: #a39389;
    border-bottom: 2px solid #eee1d5;
    z-index: 1;
}

.serial-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f9f5f0;
    font-size: 0.88rem;
}

.serial-empty {
    text-align: center;
    color: #a39389;
}

.serial-code {
    font-weight: 600;
    color: #352f2b;
    font-family: 'Courier New', Courier, monospace;
}

.serial-time {
    color: #a39389;
    font-size: 0.8rem;
}

.log-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
}

.log-table th {
    position: sticky;
    top: 0;
    background: #faf7f2;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.85rem;
    color: #a39389;
    border-bottom: 2px solid #eee1d5;
    z-index: 1;
}

.log-table td {
    padding: 15px;
    border-bottom: 1px solid #f9f5f0;
    font-size: 0.9rem;
}

.log-empty {
    text-align: center;
    color: #a39389;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-fail {
    background: #ffebee;
    color: #c62828;
}

.time-text {
    color: #a39389;
    font-size: 0.8rem;
}

.user-id {
    font-weight: 600;
    color: #352f2b;
}

.log-subtitle {
    font-size: 0.8rem;
    color: #bc8a5f;
    font-weight: 600;
}

.log-container::-webkit-scrollbar {
    width: 6px;
}

.log-container::-webkit-scrollbar-track {
    background: #f9f5f0;
}

.log-container::-webkit-scrollbar-thumb {
    background: #e9e0d8;
    border-radius: 10px;
}

.serial-container::-webkit-scrollbar {
    width: 6px;
}

.serial-container::-webkit-scrollbar-track {
    background: #f9f5f0;
}

.serial-container::-webkit-scrollbar-thumb {
    background: #e9e0d8;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .log-section {
        height: auto;
    }

    .serial-section {
        max-height: none;
    }
}
