/* CSS Variables */
:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #ff6b35;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ff9800;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #e8f5e9 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    background: var(--white);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Auth Section */
.auth-section {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.query-notice {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d32f2f;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.15);
    animation: pulse-notice 2s ease-in-out infinite;
}

.query-notice i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.query-notice strong {
    font-weight: 700;
    line-height: 1.5;
}

@keyframes pulse-notice {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label i {
    margin-right: 5px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.address-input-group {
    display: flex;
    gap: 10px;
}

.address-input-group input {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-address {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 20px;
    white-space: nowrap;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-address:hover {
    background: #e55a25;
}

/* List Section */
.list-section {
    animation: fadeIn 0.5s ease;
}

.list-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.list-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.list-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.request-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.request-item-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.request-item-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.request-item-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.request-item-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.request-item-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.status-group {
    margin-bottom: 30px;
}

.status-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.1) 0%, rgba(151, 188, 98, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-group-title i {
    font-size: 1rem;
}

.no-requests {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1rem;
}

/* Status Badge in List */
.status-badge-list {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge-list.status-접수대기 {
    background: #fff3cd;
    color: #856404;
}

.status-badge-list.status-접수완료 {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge-list.status-처리중 {
    background: #cce5ff;
    color: #004085;
}

.status-badge-list.status-완료 {
    background: #d4edda;
    color: #155724;
}

.status-badge-list.status-발송완료 {
    background: #d4edda;
    color: #155724;
}

.status-badge-list.status-취소 {
    background: #f8d7da;
    color: #721c24;
}

/* Status Section */
.status-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-button {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-refresh {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #5568d3 0%, #614a8d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-refresh:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-refresh.refreshing i {
    animation: spin 1s linear infinite;
}

/* Print Button */
.btn-print {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-print:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-print i {
    font-size: 1rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Version Info */
.version-info {
    color: #999 !important;
    font-size: 0.75rem !important;
    margin-top: 8px !important;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.version-info:hover {
    opacity: 1;
}

/* Info Card */
.info-card,
.progress-card,
.edit-card,
.delete-card {
    background: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.info-card h3,
.edit-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.delete-card h3 {
    color: var(--error-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

/* Progress card title in orange */
.progress-card h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-color);
    font-size: 1rem;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 6px;
    white-space: pre-wrap;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 30px 0;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Step 1: 온라인 접수 - Orange */
.progress-step:nth-child(1).completed .step-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b35 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.progress-step:nth-child(1).active .step-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b35 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
    animation: pulse 2s infinite;
}

/* Step 2: 입고 완료 - Blue */
.progress-step:nth-child(2).completed .step-icon {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.progress-step:nth-child(2).active .step-icon {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5);
    animation: pulse 2s infinite;
}

/* Step 3: 검수 중 - Purple */
.progress-step:nth-child(3).completed .step-icon {
    background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.progress-step:nth-child(3).active .step-icon {
    background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.5);
    animation: pulse 2s infinite;
}

/* Step 4: 수선 완료 - Teal */
.progress-step:nth-child(4).completed .step-icon {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4);
}

.progress-step:nth-child(4).active .step-icon {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 137, 123, 0.5);
    animation: pulse 2s infinite;
}

/* Step 5: 발송 완료 - Green */
.progress-step:nth-child(5).completed .step-icon {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.progress-step:nth-child(5).active .step-icon {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5);
    animation: pulse 2s infinite;
}

/* Pending state for all steps */
.progress-step.pending .step-icon {
    background: var(--bg-color);
    color: #999;
    border: 3px solid var(--border-color);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.step-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Step labels with matching colors */
.progress-step:nth-child(1).completed .step-label,
.progress-step:nth-child(1).active .step-label {
    color: #ff6b35;
    font-weight: 700;
}

.progress-step:nth-child(2).completed .step-label,
.progress-step:nth-child(2).active .step-label {
    color: #2196f3;
    font-weight: 700;
}

.progress-step:nth-child(3).completed .step-label,
.progress-step:nth-child(3).active .step-label {
    color: #9c27b0;
    font-weight: 700;
}

.progress-step:nth-child(4).completed .step-label,
.progress-step:nth-child(4).active .step-label {
    color: #00897b;
    font-weight: 700;
}

.progress-step:nth-child(5).completed .step-label,
.progress-step:nth-child(5).active .step-label {
    color: #4caf50;
    font-weight: 700;
}

.progress-step.pending .step-label {
    color: #999;
}

.step-line {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

/* Step lines with gradient colors */
.progress-step:nth-child(1).completed .step-line {
    background: linear-gradient(90deg, #ff6b35 0%, #2196f3 100%);
}

.progress-step:nth-child(2).completed .step-line {
    background: linear-gradient(90deg, #2196f3 0%, #9c27b0 100%);
}

.progress-step:nth-child(3).completed .step-line {
    background: linear-gradient(90deg, #9c27b0 0%, #00897b 100%);
}

.progress-step:nth-child(4).completed .step-line {
    background: linear-gradient(90deg, #00897b 0%, #4caf50 100%);
}

/* Return Details */
.return-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Info Notice */
.info-notice {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #1565c0;
}

.info-notice i {
    font-size: 1.2rem;
}

.info-notice.warning {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    color: #856404;
}

.info-notice.warning i {
    color: #ff9800;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 20px 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    margin-top: 0;
}

.footer p {
    color: #666;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a,
.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link:hover {
    color: var(--secondary-color);
}

/* Required indicator */
.required {
    color: var(--error-color);
    margin-left: 3px;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Edit Locked Notice */
.edit-locked-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: slideDown 0.3s ease;
    text-align: center;
}

.edit-locked-notice i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    animation: lockShake 0.5s ease;
}

.edit-locked-notice strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.edit-locked-notice p {
    font-size: 0.95rem;
    margin: 5px 0;
    opacity: 0.95;
    line-height: 1.6;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Old Data Notice */
.old-data-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.3s ease;
}

.old-data-notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.old-data-notice-content i {
    font-size: 1.3rem;
}

.old-data-notice-content span {
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-old-data {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-old-data:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .info-card,
    .progress-card,
    .edit-card {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .list-card {
        padding: 20px;
    }
    
    .request-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-item-info {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .request-item-arrow {
        align-self: center;
        transform: rotate(90deg);
    }
    
    .status-group-title {
        font-size: 1rem;
    }
    
    .progress-tracker {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-label {
        text-align: left;
        flex: 1;
        padding-left: 15px;
    }
    
    .step-line {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .address-input-group {
        flex-direction: column;
    }
    
    .btn-address {
        width: 100%;
    }
}

/* Status Change Notification */
.status-notification {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    animation: slideDown 0.5s ease-out;
}

.status-notification.hidden {
    display: none;
}

.status-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-notification .notification-content > i {
    font-size: 2rem;
    animation: bellRing 1s ease-in-out infinite;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.notification-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Inquiry Button */
.inquiry-button-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.btn-inquiry:active {
    transform: translateY(0);
}

.btn-inquiry i {
    font-size: 1.2rem;
}

/* Tracking Number Display */
.tracking-number-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tracking-number {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

/* Tracking Button */
.btn-tracking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-tracking:hover {
    background: linear-gradient(135deg, #5568d3 0%, #614a8d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-tracking:active {
    transform: translateY(0);
}

.btn-tracking i {
    font-size: 0.95rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-content {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .return-details {
        grid-template-columns: 1fr;
    }
    
    .notification-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-inquiry {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ========================================
   프린트 전용 스타일
   ======================================== */
@media print {
    /* 페이지 설정 - A4 1페이지 최적화 */
    @page {
        size: A4 portrait;
        margin: 10mm 12mm;
    }

    /* 배경 및 불필요한 요소 숨김 */
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 9pt !important;
        line-height: 1.3 !important;
        height: auto !important;
    }

    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }

    /* 숨길 요소들 */
    .back-button,
    .btn,
    button,
    .notification-close,
    .status-notification,
    .loading-overlay,
    .inquiry-button-container,
    .edit-card,
    .delete-card,
    .progress-card,
    #return-info,
    footer {
        display: none !important;
    }

    /* 헤더 최적화 - 컴팩트 */
    .header {
        background: white !important;
        color: #2c5f2d !important;
        border-bottom: 2px solid #2c5f2d;
        padding: 8px 0 6px 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-after: avoid !important;
        margin-bottom: 0 !important;
    }

    .logo {
        justify-content: center !important;
        gap: 8px !important;
    }

    .logo i {
        color: #2c5f2d !important;
        font-size: 1.3rem !important;
    }

    .logo h1 {
        color: #2c5f2d !important;
        font-size: 1.3rem !important;
        font-weight: 700;
        margin: 0 !important;
    }

    .subtitle {
        color: #666 !important;
        font-size: 0.8rem !important;
        font-weight: 400;
        margin-top: 2px !important;
    }

    /* 접수 정보 카드만 표시 - 컴팩트 */
    .info-card {
        background: white !important;
        border: 1.5px solid #2c5f2d !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border-radius: 4px !important;
    }

    .info-card h3 {
        color: #2c5f2d !important;
        font-size: 1rem !important;
        font-weight: 700;
        border-bottom: 2px solid #2c5f2d;
        padding-bottom: 4px !important;
        margin-bottom: 8px !important;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .info-card h3 i {
        color: #2c5f2d !important;
        font-size: 0.95rem !important;
    }

    /* 정보 그리드 - 컴팩트 */
    .info-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 12px !important;
        margin-top: 6px !important;
    }

    .info-item {
        page-break-inside: avoid !important;
        padding: 4px 0 !important;
        border-bottom: 1px solid #eee;
        margin: 0 !important;
    }

    .info-label {
        color: #555 !important;
        font-weight: 600;
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .info-label i {
        color: #2c5f2d !important;
        font-size: 0.7rem !important;
    }

    .info-value {
        color: #000 !important;
        font-size: 0.85rem !important;
        font-weight: 500;
        word-break: break-word;
        line-height: 1.3 !important;
    }

    /* 특정 필드 강조 */
    .info-item:has(.info-label:contains("접수번호")) .info-value,
    .info-item:has(.info-label:contains("고객명")) .info-value {
        font-weight: 700;
        color: #2c5f2d !important;
        font-size: 0.9rem !important;
    }

    /* 추적 정보 - 컴팩트 */
    .tracking-number {
        background: #f8f9fa !important;
        border: 1px solid #2c5f2d !important;
        color: #000 !important;
        font-weight: 700;
        padding: 3px 6px !important;
        border-radius: 3px !important;
        font-family: 'Courier New', monospace !important;
        font-size: 0.8rem !important;
    }

    /* 사진 출력 - 접수 정보에만 표시 (컴팩트) */
    .info-card .photo-item img {
        max-width: 100%;
        max-height: 80px !important;
        width: auto !important;
        height: auto;
        object-fit: cover;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        border-radius: 3px;
        margin: 2px;
    }

    /* 사진 그리드 - 컴팩트 */
    .info-card .photo-preview {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 4px !important;
        margin-top: 6px !important;
    }

    /* 링크 스타일 */
    a {
        color: #2c5f2d !important;
        text-decoration: none !important;
        font-weight: 500;
    }

    /* 링크 URL 표시 제거 (깔끔한 출력) */
    a[href]:after {
        content: none;
    }

    /* 페이지 나누기 제어 - 강력하게 */
    * {
        page-break-inside: avoid !important;
    }
    
    h2, h3 {
        page-break-after: avoid !important;
        page-break-before: avoid !important;
    }
    
    .status-section {
        page-break-inside: avoid !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* 모든 섹션을 한 페이지로 강제 */
    .main-content {
        page-break-inside: avoid !important;
    }

    /* 인쇄 전용 헤더 정보 - 컴팩트 */
    .status-section::before {
        content: "A/S 접수 증명서";
        display: block;
        text-align: center;
        font-size: 0.95rem !important;
        font-weight: 700;
        color: #2c5f2d;
        margin: 6px 0 6px 0 !important;
        padding: 6px !important;
        border: 1.5px solid #2c5f2d;
        border-radius: 4px;
        background: #f8f9fa;
        page-break-after: avoid !important;
    }

    /* 인쇄 날짜 표시 - 컴팩트 */
    .status-section::after {
        content: "인쇄일: " attr(data-print-date);
        display: block;
        text-align: right;
        font-size: 0.65rem !important;
        color: #999;
        margin-top: 6px !important;
        padding-top: 4px !important;
        border-top: 1px solid #ddd;
        font-weight: 400;
        page-break-before: avoid !important;
    }

    /* 하단 안내 문구 - 컴팩트 */
    .info-card:last-of-type::after {
        content: "본 문서는 제이에이치아웃도어 A/S 접수 증명서입니다.";
        display: block;
        text-align: center;
        font-size: 0.65rem !important;
        color: #999;
        margin-top: 6px !important;
        padding: 5px !important;
        border: 1px dashed #ccc;
        border-radius: 3px;
        background: #fafafa;
        line-height: 1.2 !important;
        page-break-before: avoid !important;
    }
}
