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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 38px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin-right: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.category-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.category-card p {
    opacity: 0.9;
    font-size: 0.9em;
}

.api-test-form {
    margin-top: 20px;
}

.api-test-form .form-group {
    margin-bottom: 15px;
}

.api-test-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    min-height: 100px;
    resize: vertical;
}

.response-area {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.response-area h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.response-area pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.5;
}

.endpoint {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.endpoint code {
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 10px;
}

.endpoint p {
    margin: 10px 0;
    color: #666;
}

.endpoint pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 0.85em;
    margin-top: 10px;
}

.api-doc-section {
    margin-bottom: 30px;
}

.api-doc-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#tokenStatus {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.paper-card {
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333333 !important;
}

.paper-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.paper-card h3 {
    color: #2c3e50 !important;
}

.paper-card h3:hover {
    color: #667eea !important;
    cursor: pointer;
}

.paper-card * {
    color: inherit;
}

.paper-card button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

details summary {
    cursor: pointer;
}

details summary:hover {
    background: #e8e8e8 !important;
}

details summary::-webkit-details-marker {
    display: none;
}

/* 응답 영역 스타일 개선 */
.response-area {
    background: #ffffff !important;
    color: #333333 !important;
}

.response-area h3 {
    color: #667eea !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}.response-area pre {
    background: #2d2d2d !important;
    color: #f8f8f2 !important;
}

/* 로그인 오버레이 */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-card h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.login-card .form-group {
    text-align: left;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-card input:focus {
    border-color: #667eea;
    outline: none;
}
