/* ======= 판매자 모드 스타일 ======= */
.seller-mode * {
    box-sizing: border-box;
}

.seller-mode body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 로그인 페이지 스타일 */
.seller-mode .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.seller-mode .login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.seller-mode .login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.seller-mode .login-logo h1 {
    font-size: 32px;
    font-weight: 900;
    color: #333;
    margin-bottom: 10px;
}

.seller-mode .login-logo p {
    color: #666;
    font-size: 14px;
}

.seller-mode .form-group {
    margin-bottom: 20px;
}

.seller-mode label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.seller-mode input[type="text"],
.seller-mode input[type="password"],
.seller-mode input[type="email"],
.seller-mode input[type="number"],
.seller-mode input[type="file"],
.seller-mode textarea,
.seller-mode select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.seller-mode input:focus,
.seller-mode textarea:focus,
.seller-mode select:focus {
    outline: none;
    border-color: #667eea;
}

.seller-mode .btn {
    background: #667eea;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.seller-mode .btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.seller-mode .btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.seller-mode .btn-secondary:hover {
    background: #f7fafc;
}

.seller-mode .login-footer {
    text-align: center;
    margin-top: 20px;
}

.seller-mode .login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

/* 메인 대시보드 */
.seller-mode .dashboard-container {
    display: none;
}

.seller-mode .header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.seller-mode .header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-mode .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.seller-mode .logo {
    font-size: 24px;
    font-weight: 900;
    color: #333;
}

.seller-mode .nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seller-mode .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    text-decoration: none;
    border: 2px solid transparent;
}

.seller-mode .nav-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.seller-mode .nav-icon.active {
    background: #667eea;
    color: white;
    border-color: #5a67d8;
}

.seller-mode .seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seller-mode .seller-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.seller-mode .status-active {
    background: #4CAF50;
    color: white;
}

.seller-mode .status-new {
    background: #2196F3;
    color: white;
}

.seller-mode .main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.seller-mode .sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.seller-mode .sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.seller-mode .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.seller-mode .stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.seller-mode .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.seller-mode .stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.seller-mode .product-list {
    max-height: 500px;
    overflow-y: auto;
}

.seller-mode .product-item {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.seller-mode .product-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.seller-mode .product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.seller-mode .product-name {
    font-weight: 600;
    font-size: 14px;
}

.seller-mode .product-price {
    color: #666;
    font-size: 12px;
}

.seller-mode .product-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.seller-mode .btn-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 15px;
}

.seller-mode .content-area {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seller-mode .welcome-notice {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.seller-mode .welcome-notice h3 {
    color: #1565c0;
    margin-bottom: 10px;
}

.seller-mode .welcome-notice p {
    color: #1565c0;
}

.seller-mode .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.seller-mode .tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.seller-mode .tab.active {
    color: #667eea;
}

.seller-mode .tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.seller-mode .tab-content {
    display: none;
}

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

.seller-mode .size-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.seller-mode .size-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.seller-mode .size-option.selected {
    border-color: #667eea;
    background: #f0f3ff;
}

.seller-mode .color-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.seller-mode .color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.seller-mode .color-option.selected {
    border-color: #667eea;
    transform: scale(1.1);
}

.seller-mode .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.seller-mode .modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.seller-mode .modal-header {
    margin-bottom: 30px;
}

.seller-mode .modal-header h2 {
    font-size: 24px;
    color: #333;
}

.seller-mode .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.seller-mode .file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.seller-mode .file-upload-area:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.seller-mode .file-upload-area.has-file {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.seller-mode .success-message {
    background: #4CAF50;
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.seller-mode .error-message {
    background: #f44336;
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.seller-mode .loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.seller-mode .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seller-mode .bulk-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.seller-mode .bulk-upload-area.dragover {
    border-color: #667eea;
    background: #f0f0f0;
}