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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background: #3a3a3a;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.main-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.main-header p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.container h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #666;
    font-size: 15px;
}

.value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.code-font {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge.error {
    background-color: #ffebee;
    color: #c62828;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.primary {
    background: #4285f4;
    color: white;
}

.btn.primary:hover {
    background: #3367d6;
}

.btn.secondary {
    background: #666;
    color: white;
}

.btn.secondary:hover {
    background: #555;
}

.btn.success {
    background: #34a853;
    color: white;
}

.btn.success:hover {
    background: #2d8e47;
}

.btn.link {
    background: transparent;
    color: #4285f4;
    padding: 12px 0;
}

.btn.link:hover {
    color: #3367d6;
    text-decoration: underline;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-group .btn {
    flex: 1;
}

/* Info Text */
.info-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.hint-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

/* Error Message */
.error-msg {
    background: #ffebee;
    color: #c62828;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Queue Status Card */
.queue-status-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.queue-status-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.queue-number {
    font-size: 36px;
    font-weight: 700;
    color: #4285f4;
    margin: 20px 0;
}

/* Upload Section */
#uploadSection {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#uploadSection h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.upload-box {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

#pdfInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

#pdfInput:focus {
    outline: none;
    border-color: #4285f4;
}

/* Status Message */
.status-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* Response Box */
.response-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.response-code {
    display: block;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Divider */
.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 30px 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 32px;
    }
    
    .main-header p {
        font-size: 16px;
    }
    
    .container {
        margin: 40px auto;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .upload-box {
        flex-direction: column;
    }
    
    .queue-number {
        font-size: 56px;
    }
}
