@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700;800&display=swap');

.coupon-admin-page {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background-color: #f9f5f0;
    color: #4a423d;
    padding: 40px 20px;
}

.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
}

.generator-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #eee1d5;
    box-shadow: 0 10px 30px rgba(74, 66, 61, 0.05);
    padding: 35px;
    height: fit-content;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: #d4a373;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.header h1 {
    font-size: 1.4rem;
    color: #352f2b;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #8e7f75;
}

.input-wrap {
    position: relative;
}

.input-wrap span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a39389;
    font-weight: 600;
}

.admin-input {
    width: 100%;
    padding: 14px 15px;
    font-size: 1rem;
    border: 2px solid #f0e6dc;
    border-radius: 12px;
    background: #faf7f2;
    outline: none;
    transition: 0.3s;
}

.admin-input:focus {
    border-color: #d4a373;
    background: #fff;
}

.btn-generate {
    width: 100%;
    padding: 16px;
    background: #352f2b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-generate:hover:not(:disabled) {
    background: #5a504a;
    transform: translateY(-2px);
}

.btn-generate:disabled {
    background: #c4b8b0;
    cursor: not-allowed;
    transform: none;
}

.helper-box {
    margin-top: 25px;
    padding: 15px;
    background: #faf7f2;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #8e7f75;
    line-height: 1.6;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #eee1d5;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(74, 66, 61, 0.05);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-text {
    font-size: 0.8rem;
    font-weight: normal;
    color: #a39389;
}

.log-label {
    font-size: 0.8rem;
    font-weight: normal;
    color: #bc8a5f;
}

.table-wrapper {
    max-height: 300px;
    overflow-y: auto;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-wrapper th {
    text-align: left;
    padding: 12px;
    background: #faf7f2;
    color: #a39389;
    font-weight: 600;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #eee1d5;
}

.table-wrapper td {
    padding: 14px 12px;
    border-bottom: 1px solid #f9f5f0;
    color: #4a423d;
}

.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-unused {
    background: #fff3e0;
    color: #ef6c00;
}

.status-disabled {
    background: #fef2f2;
    color: #b91c1c;
}

.code-text {
    font-family: monospace;
    font-weight: 600;
    color: #bc8a5f;
}

.user-id {
    color: #352f2b;
    font-weight: 600;
}

.btn-copy-small {
    background: none;
    border: 1px solid #e9e0d8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #8e7f75;
}

.btn-copy-small:hover {
    background: #f0e6dc;
    color: #352f2b;
}

.empty-row {
    text-align: center;
    color: #ccc;
    padding: 40px 0;
}

@media (max-width: 900px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}
