/* ========================================
   관리자 페이지 - Modern Admin UI
   메인 페이지 스타일 참고
   ======================================== */

/* CSS Variables - 메인 페이지와 동일 */
:root {
    --primary-color: #1a3a6b;
    --secondary-color: #ff6b35;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

/* Admin Page Layout */
.admin-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-light);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Admin Header - 메인 페이지 스타일 */
.admin-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Logo - 메인 페이지 스타일 */
.admin-logo {
    padding: 15px 0;
    flex-shrink: 0;
}

.admin-logo h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.admin-logo h1 span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Navigation - 메인 페이지 스타일 적용 */
.admin-nav {
    flex: 1;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.admin-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 25px 0;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.admin-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.admin-nav a:hover {
    color: var(--primary-color);
}

.admin-nav a:hover::after,
.admin-nav a.active::after {
    width: 100%;
}

.admin-nav a.active {
    color: var(--primary-color);
}

/* User Area */
.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    flex-shrink: 0;
}

.admin-user span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.btn-logout {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3a6b 0%, #2d5a9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    margin-bottom: 30px;
}

.login-header .logo h1 {
    font-size: 3rem;
    color: #1a3a6b;
    margin: 0;
    font-weight: 700;
}

.login-header .logo p {
    font-size: 1.2rem;
    color: #666;
    margin: 5px 0 0 0;
}

.login-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 10px 0;
}

.login-header .subtitle {
    color: #999;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.form-options {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #666;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: #1a3a6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #2d5a9e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 107, 0.3);
}

.login-info {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    color: white;
}

.login-info h3 {
    font-size: 1.8rem;
    margin: 0 0 20px 0;
}

.login-info .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-info .info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-info .info-list li:last-child {
    border-bottom: none;
}

/* Admin Page Layout */
.admin-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Admin Header - Modern Design */
.admin-header {
    background: white;
    color: #1a3a6b;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.admin-logo {
    padding: 16px 0;
}

.admin-logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a6b;
}

.admin-logo h1 span {
    color: #ff6b35;
    font-weight: 600;
}

/* Modern Navigation */
.admin-nav {
    flex: 1;
    display: flex;
    gap: 8px;
}

.admin-nav a {
    color: #6c757d;
    text-decoration: none;
    padding: 20px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.admin-nav a:hover {
    color: #1a3a6b;
    background: #f8f9fa;
}

.admin-nav a.active {
    color: #1a3a6b;
    border-bottom-color: #ff6b35;
    font-weight: 600;
}

/* Remove icons from nav */
.admin-nav a i {
    display: none;
}

/* Modern User Area */
.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
}

.admin-user span {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-user span i {
    display: none;
}

.btn-logout {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.btn-logout i {
    display: none;
}
    gap: 8px;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 40px 0;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Page Title - 메인 페이지 섹션 타이틀 스타일 */
.page-title {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-title p {
    color: var(--text-light);
    margin: 10px 0 0 0;
    font-size: 16px;
}

/* Page Actions */
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Cards - 메인 페이지 카드 스타일 */
.admin-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.card-body {
    padding: 30px;
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 0 25px 0;
    font-weight: 700;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.stat-pending .stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stat-processing .stat-icon {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.stat-shipping .stat-icon {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.stat-completed .stat-icon {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.stat-content h3 {
    font-size: 36px;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}
}

.page-title p {
    color: #6c757d;
    margin: 8px 0 0 0;
    font-size: 1rem;
}

.page-title i {
    font-size: 1.8rem;
}

/* Page Actions */
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Modern Order Monitor Button - 3x Larger */
.btn-monitor {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 24px 48px;
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.btn-monitor span {
    display: inline-block;
}

.btn-monitor:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.5);
}

.btn-monitor:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-monitor i {
    display: none;
}

/* Notification Badge - Larger */
.notification-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ffd700;
    color: #1a3a6b;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    min-width: 48px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

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

/* Modern Cards */
.admin-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.card-header h3 {
    margin: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-header h3 i {
    display: none;
}

/* Card Actions */
.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-body {
    padding: 24px;
}

.card-body {
    padding: 30px;
}

/* Dashboard */
.dashboard-section {
    margin-bottom: 40px;
}

/* Modern Section Title */
.section-title {
    font-size: 1.1rem;
    color: #212529;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.section-title i {
    display: none;
}

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

/* Modern Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-pending .stat-icon {
    background: #ffc107;
}

.stat-processing .stat-icon {
    background: #0d6efd;
}

.stat-shipping .stat-icon {
    background: #6610f2;
}

.stat-completed .stat-icon {
    background: #28a745;
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: #212529;
    font-weight: 700;
}

.stat-content p {
    margin: 4px 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tables - 메인 페이지 스타일 */
.data-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead,
.admin-table thead {
    background: var(--bg-light);
}

.data-table th,
.admin-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
}

.data-table td,
.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 15px;
}

.data-table tbody tr,
.admin-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table tbody tr:last-child td,
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges - 메인 페이지 스타일 */
.badge,
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-pending,
.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.badge-processing,
.status-badge.processing {
    background: #cfe2ff;
    color: #084298;
}

.badge-primary {
    background: #d1e7ff;
    color: #0c5ba0;
}

.badge-success {
    background: #d1f2eb;
    color: #0c5d47;
}

.badge-shipping,
.status-badge.shipping {
    background: #e7d6ff;
    color: #3d0a91;
}

.badge-completed,
.status-badge.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-cancelled,
.status-badge.cancelled {
    background: #f8d7da;
    color: #842029;
}

.badge-danger {
    background: #f8d7da;
    color: #842029;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #cfe2ff;
    color: #084298;
}

/* Buttons - 메인 페이지 스타일 */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.btn-primary:hover {
    background: #e55a29;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: #555555;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

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

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: var(--white);
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-small,
.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-view,
.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view {
    background: #0d6efd;
    color: var(--white);
}

.btn-view:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.btn-edit {
    background: #28a745;
    color: var(--white);
}

.btn-edit:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: var(--white);
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Empty State & Loading State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-state i {
    font-size: 3rem;
}

.loading-state span {
    font-size: 1rem;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Order Number */
.order-number {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
    color: var(--primary-color);
    font-weight: 600;
}

/* Order Detail Modal Styles */
.order-detail-grid {
    display: grid;
    gap: 20px;
}

.detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-section h4 {
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #dee2e6;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: flex-start;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 140px;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    color: var(--text-dark);
    font-size: 15px;
    word-break: break-word;
}

.detail-value.memo {
    white-space: pre-wrap;
    background: var(--white);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
}

/* Order Content Preview */
.order-content-preview {
    white-space: pre-wrap;
    font-size: 0.9em;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dealer Name */
.dealer-name {
    font-weight: 600;
}

/* Delivery Type */
.delivery-type {
    font-size: 0.9em;
}

/* Badge Styles */
.badge-new,
.badge-modified,
.badge-cancel {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 6px;
}

.badge-new {
    background: #ffc107;
    color: #856404;
}

.badge-modified {
    background: #17a2b8;
    color: white;
}

.badge-cancel {
    background: #dc3545;
    color: white;
}

/* Count Badge */
.count-badge {
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

    border-bottom: 1px solid #e1e4e8;
    color: #333;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-processing {
    background: #cfe2ff;
    color: #084298;
}

.badge-shipping {
    background: #e7d6ff;
    color: #3d0a91;
}

.badge-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-cancelled {
    background: #f8d7da;
    color: #842029;
}

/* Modern Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: #e55a29;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary i {
    display: none;
}

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

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

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

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

.btn-success:hover {
    background: #218838;
}

/* Forms - 메인 페이지 스타일 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Filter Row - 주문 관리 전용 */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    margin: 0;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-group input::placeholder {
    color: #999;
    font-size: 15px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

/* Modal - 메인 페이지 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 30px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.btn-close,
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-close:hover,
.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 2px solid var(--bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.3;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.required {
    color: #dc3545;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1a3a6b;
    font-size: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e4e8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Login Page - 메인 페이지 스타일 */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2847 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
}

.login-box {
    background: var(--white);
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 45px;
}

.login-header .logo {
    margin-bottom: 35px;
}

.login-header .logo h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-header .logo p {
    font-size: 18px;
    color: var(--text-light);
    margin: 10px 0 0 0;
}

.login-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.login-header .subtitle {
    color: var(--text-light);
    font-size: 16px;
}

.login-form .form-group {
    margin-bottom: 28px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-options {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-dark);
    font-size: 15px;
}

/* ========================================
   Dashboard Quick Actions & Info Cards
   ======================================== */

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-action-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

.quick-action-card .action-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 16px;
}

.quick-action-card .action-icon.pending {
    background: #ffc107;
}

.quick-action-card .action-icon.processing {
    background: #0d6efd;
}

.quick-action-card .action-icon.shipping {
    background: #6610f2;
}

.quick-action-card .action-icon.completed {
    background: #28a745;
}

.quick-action-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #212529;
    font-weight: 600;
}

.quick-action-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.quick-action-card .action-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.quick-action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
}

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

.info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.info-card .info-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-card .info-content {
    flex: 1;
}

.info-card .info-content h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
}

.info-card .info-content p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.info-card .status-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

.info-card .status-ok i {
    font-size: 0.9rem;
}

/* View All Link */
.view-all-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.view-all-link:hover {
    color: #e55a29;
    gap: 8px;
}

.view-all-link i {
    font-size: 0.75rem;
}

/* Section Title with Link */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-dark);
    font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-login:hover {
    background: #e55a29;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.login-info {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    color: var(--white);
}

.login-info h3 {
    font-size: 28px;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.login-info .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-info .info-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.login-info .info-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .admin-header-content {
        flex-wrap: wrap;
    }
    
    .admin-nav {
        width: 100%;
        order: 3;
        overflow-x: auto;
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-info {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dealer-grid,
    .admin-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-header-content {
        padding: 0 20px;
        gap: 20px;
    }
    
    .admin-logo h1 {
        font-size: 22px;
    }
    
    .admin-nav {
        gap: 15px;
    }
    
    .admin-nav a {
        font-size: 14px;
        padding: 20px 0;
    }
    
    .page-title h2 {
        font-size: 24px;
    }
    
    .admin-container {
        padding: 0 20px;
    }
    
    .card-body {
        padding: 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-muted {
    color: var(--text-light);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
@media (max-width: 1200px) {
    .admin-header-content {
        flex-wrap: wrap;
    }
    
    .admin-nav {
        width: 100%;
        order: 3;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-info {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dealer/Admin Cards Grid */
.dealer-grid,
.dealers-grid,
.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 태블릿: 2개씩 */
@media (max-width: 1200px) {
    .dealer-grid,
    .dealers-grid,
    .admin-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 모바일: 1개씩 */
@media (max-width: 768px) {
    .dealer-grid,
    .dealers-grid,
    .admin-cards {
        grid-template-columns: 1fr;
    }
}

.dealer-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.dealer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.dealer-card.inactive {
    opacity: 0.6;
    background: var(--bg-light);
}

.dealer-header,
.dealer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-light);
}

.dealer-header h4,
.dealer-card-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 700;
}

.dealer-body,
.dealer-card-body {
    margin-top: 0;
}

.info-item,
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-dark);
}

.info-item i,
.info-row i {
    color: var(--secondary-color);
    margin-top: 2px;
    width: 16px;
    font-size: 14px;
}

.info-item strong,
.info-row .label {
    color: var(--text-dark);
    min-width: 70px;
    font-weight: 600;
}

.info-row .value {
    flex: 1;
    color: var(--text-dark);
}

.dealer-footer,
.dealer-card-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--bg-light);
}

.btn-dealer-edit,
.btn-dealer-toggle,
.btn-edit,
.btn-sm {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-dealer-edit,
.btn-edit {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-dealer-edit:hover,
.btn-edit:hover {
    background: #e55a29;
    transform: translateY(-2px);
}

.btn-dealer-toggle {
    background: #28a745;
    color: var(--white);
}

.btn-dealer-toggle:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Permission Checkboxes */
.permission-group {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.permission-group h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.permission-item:hover {
    background: #fff;
    border-color: var(--secondary-color);
}

.permission-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.permission-item label {
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* Alert Info Box */
.alert-info {
    background: #d1ecf1;
    border: 2px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.alert-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

.alert-info ul {
    margin: 15px 0 0 20px;
    list-style: disc;
}

.alert-info li {
    margin: 8px 0;
    color: var(--text-dark);
    line-height: 1.6;
}
.dealer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.dealer-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dealer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: #1a3a6b;
}

.dealer-card.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.dealer-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.dealer-header h4 {
    margin: 0;
    color: #1a3a6b;
    font-size: 1.2rem;
}

.dealer-body {
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.info-item i {
    color: #1a3a6b;
    margin-top: 3px;
    width: 16px;
}

.info-item strong {
    color: #333;
    min-width: 70px;
}

.dealer-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
}

.btn-dealer-edit,
.btn-dealer-toggle {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-dealer-edit {
    background: #0d6efd;
    color: white;
}

.btn-dealer-edit:hover {
    background: #0b5ed7;
}

.btn-dealer-toggle {
    background: #198754;
    color: white;
}

.btn-dealer-toggle:hover {
    background: #157347;
}

/* Permission Checkboxes */
.permission-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.permission-group h4 {
    margin: 0 0 15px 0;
    color: #1a3a6b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permission-item:hover {
    background: #e9ecef;
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permission-item label {
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}
