:root {
    --primary-color: #4a90e2;
    --accent-color: #ff6b6b;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #333333;
    --gray-color: #888888;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 5px;
}

header p {
    font-size: 14px;
    color: var(--gray-color);
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-color);
    margin-bottom: 8px;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-area {
    margin: 25px 0;
}
.action-area p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--gray-color);
}
.btn-generate {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
    transition: all 0.2s;
}

.btn-generate:active {
    transform: scale(0.96);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.btn-generate:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.result-area {
    margin-top: 10px;
}

.message-box {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    resize: none;
    margin-bottom: 10px;
}

.message-box:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

.btn-copy {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-copy:active {
    background-color: #357abd;
    transform: scale(0.98);
}

/* 광고 영역 스타일 */
.ad-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    text-align: center;
}

.ad-title {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.ad-disclaimer {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    line-height: 1.4;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1000;
}
.copyright{
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
}
.toast.show {
    opacity: 1;
}
