/* 관리자 페이지 전용 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1A1A1A;
    color: #ffffff;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 모바일 햄버거 메뉴 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #6A3DFF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #5a2fd9;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
}

/* 사이드바 */
.admin-sidebar {
    width: 250px;
    background: #1A1A1A;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid #333;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #333;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-header h2 i {
    color: #6A3DFF;
}

.sidebar-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.menu-item {
    margin: 5px 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item a:hover {
    background-color: #282828;
    color: white;
}

.menu-item.active a {
    background-color: #282828;
    color: white;
    border-right: 3px solid #6A3DFF;
}

.menu-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* 메인 콘텐츠 */
.admin-main {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    background: #1A1A1A;
    transition: margin-left 0.3s ease, padding-top 0.3s ease;
}

.admin-header {
    background: #1A1A1A;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.header-left p {
    color: #888;
    margin: 8px 0 0 0;
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
}

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

.admin-name {
    font-weight: 500;
    color: #ffffff;
}

.btn-logout {
    background: #6A3DFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #5a2fd9;
    transform: translateY(-1px);
}

/* 대시보드 콘텐츠 */
.dashboard-content {
    padding: 30px;
    background: #1A1A1A;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #282828;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #6A3DFF;
    box-shadow: 0 8px 25px rgba(106, 61, 255, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #6A3DFF, #8B5CF6);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #6A3DFF, #8B5CF6);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #6A3DFF, #8B5CF6);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #6A3DFF, #8B5CF6);
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-info p {
    color: #888;
    font-size: 0.8rem;
}

/* 대시보드 섹션 */
.dashboard-section {
    background: #282828;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.dashboard-section h2 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
}

/* 활동 목록 */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    margin-right: 12px;
    color: #7f8c8d;
}

/* 시스템 상태 */
.system-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-label {
    font-weight: 500;
    color: #555;
}

.status-value {
    font-weight: 600;
    color: #2c3e50;
}

.status-value.success {
    color: #27ae60;
}

.status-value.error {
    color: #e74c3c;
}

.status-value.warning {
    color: #f39c12;
}

/* 버튼 스타일 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    touch-action: manipulation;
}

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

.btn-primary:hover {
    background: #5a2fd9;
    transform: translateY(-1px);
}

.btn-success {
    background: #27ae60;
    color: white;
}

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

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

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

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

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* 테이블 스타일 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* 테이블 컨테이너 - 모바일에서 가로 스크롤 */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0; /* flexbox에서 테이블이 축소될 수 있도록 */
}

/* 테이블 최소 너비 설정 */
.data-table {
    min-width: 800px; /* 테이블이 너무 작아지지 않도록 */
}

/* 모바일 테이블 카드 형태 */
.table-mobile-cards {
    display: none;
}

.table-mobile-card {
    background: #282828;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.table-mobile-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.table-mobile-card .card-title {
    font-weight: 600;
    color: #ffffff;
}

.table-mobile-card .card-actions {
    display: flex;
    gap: 8px;
}

.table-mobile-card .card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.table-mobile-card .card-row:last-child {
    border-bottom: none;
}

.table-mobile-card .card-label {
    font-weight: 500;
    color: #888;
    min-width: 80px;
}

.table-mobile-card .card-value {
    color: #ffffff;
    text-align: right;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ffffff;
}

.data-table th {
    background: #282828;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* 클릭 가능한 이메일 스타일 */
.clickable-email {
    cursor: pointer;
    color: #6A3DFF !important;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.clickable-email:hover {
    color: #8B5CF6 !important;
    background: rgba(106, 61, 255, 0.1);
}

/* 클릭 가능한 노드 이름 스타일 */
.clickable-node-name {
    cursor: pointer;
    color: #6A3DFF !important;
    transition: all 0.3s ease;
}

.clickable-node-name:hover {
    color: #8B5CF6 !important;
    background: rgba(106, 61, 255, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #282828;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6A3DFF;
    box-shadow: 0 0 0 3px rgba(106, 61, 255, 0.1);
    background: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

/* 모든 input과 select 요소에 다크 테마 강제 적용 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    background-color: #333 !important;
    border-color: #6A3DFF !important;
    box-shadow: 0 0 0 3px rgba(106, 61, 255, 0.1) !important;
    outline: none !important;
}

/* select 옵션 스타일 */
select option {
    background-color: #2a2a2a;
    color: #ffffff;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #282828;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

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

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 로딩 오버레이 */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-spinner i {
    font-size: 2rem;
    color: #6A3DFF;
    animation: spin 1s linear infinite;
}

.loading-spinner .loading-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* 로그인 페이지 스타일 */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-layout {
    display: flex;
    min-height: 100vh;
}

/* 왼쪽 사이드바 */
.login-sidebar {
    width: 30%;
    background: #6A1B9A;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-content {
    text-align: center;
    color: white;
}

.sidebar-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.sidebar-subtitle {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* 오른쪽 메인 영역 */
.login-main {
    width: 70%;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-content {
    width: 100%;
    max-width: 500px;
}

/* 메인 텍스트 */
.main-text {
    margin-bottom: 50px;
}

.main-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.main-text .highlight {
    color: #6A1B9A;
}

/* 로그인 폼 */
.login-form {
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #2a2a2a;
    color: white;
}

.input-group input:focus {
    outline: none;
    border-color: #6A1B9A;
    background: #333;
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.input-group input::placeholder {
    color: #888;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 25px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #6A1B9A;
    border-color: #6A1B9A;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.btn-login:hover {
    background: #5a1a8a;
    transform: translateY(-2px);
}

.btn-login i {
    margin-right: 8px;
}

/* 하단 링크 */
.login-footer {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #6A1B9A;
}

/* 메시지 스타일 */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

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

.error-message i,
.success-message i {
    margin-right: 8px;
}

/* 반응형 디자인 */

/* 태블릿 반응형 */
@media (max-width: 1200px) {
    .admin-sidebar {
        width: 220px;
    }
    
    .admin-main {
        margin-left: 220px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .system-status {
        grid-template-columns: 1fr;
    }
    
    .node-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 중간 화면 - 사이드바 숨김 시작 */
@media (max-width: 1024px) {
    /* 테이블이 깨지기 전에 모바일 모드로 전환 */
    .data-table {
        min-width: 600px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    /* 햄버거 메뉴 표시 */
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    /* 사이드바 모바일 */
    .admin-sidebar {
        width: 280px;
        transform: translateX(-100%);
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding-top: 60px;
    }
    
    /* 헤더 모바일 */
    .admin-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 대시보드 모바일 */
    .dashboard-content {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .system-status {
        grid-template-columns: 1fr;
    }
    
    /* 노드 그리드 모바일 */
    .node-grid {
        grid-template-columns: 1fr;
    }
    
    .node-card {
        margin-bottom: 15px;
    }
    
    /* 테이블 모바일 - 카드 형태로 변경 */
    .data-table {
        display: none;
    }
    
    .table-mobile-cards {
        display: block;
    }
    
    .table-container {
        padding: 0;
    }
    
    /* 모달 모바일 */
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 폼 모바일 */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* iOS 줌 방지 */
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border: 1px solid #333 !important;
    }
    
    /* 모바일에서도 모든 input과 select에 다크 테마 강제 적용 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    select,
    textarea {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border: 1px solid #333 !important;
    }
    
    /* 버튼 모바일 */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* 로그인 페이지 모바일 */
    .login-layout {
        flex-direction: column;
    }
    
    .login-sidebar {
        width: 100%;
        height: 200px;
        padding: 20px;
    }
    
    .sidebar-title {
        font-size: 2rem;
    }
    
    .sidebar-subtitle {
        font-size: 1rem;
    }
    
    .login-main {
        width: 100%;
        padding: 30px 20px;
    }
    
    .main-text h2 {
        font-size: 2rem;
    }
    
    .login-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 모바일 반응형 - 추가 조정 */
@media (max-width: 768px) {
    .admin-header {
        padding: 10px 15px;
    }
    
    .dashboard-content {
        padding: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .table-mobile-card {
        padding: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-label {
        font-size: 0.9rem;
    }
    
    .card-value {
        font-size: 0.9rem;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .admin-header {
        padding: 10px 15px;
    }
    
    .dashboard-content {
        padding: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .table-mobile-card {
        padding: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-label {
        font-size: 0.9rem;
    }
    
    .card-value {
        font-size: 0.9rem;
    }
    
    /* 노드 카드 모바일 */
    .node-card {
        padding: 15px;
        background: #2a2a2a;
        border: 1px solid #333;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .node-card .node-header h3 {
        font-size: 1.1rem;
        color: #ffffff;
    }
    
    .node-card .node-info {
        font-size: 0.9rem;
        color: #ffffff;
    }
    
    .node-card .info-label {
        color: #888;
    }
    
    .node-card .info-value {
        color: #ffffff;
    }
    
    /* 액션 버튼 모바일 */
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 폼 모바일 */
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}

/* 노드 카드 스타일 */
.node-card {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.node-card:hover {
    border-color: #6A3DFF;
    box-shadow: 0 4px 8px rgba(106, 61, 255, 0.1);
    transform: translateY(-2px);
}

.node-card .node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.node-card .node-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.node-card .node-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.node-card .info-item {
    display: flex;
    flex-direction: column;
}

.node-card .info-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
}

.node-card .info-value {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.node-card .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.node-card .status-badge.online {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.node-card .status-badge.offline {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.node-card .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* 고객 상세 정보 스타일 */
.customer-info-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.customer-info-section h4 {
    color: #6A3DFF;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #888;
    min-width: 100px;
}

.info-item span {
    text-align: right;
}

/* VM 목록 스타일 */
.vm-list-section {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.section-header h4 {
    color: #6A3DFF;
    margin: 0;
    font-size: 1.2rem;
}

.vm-actions {
    display: flex;
    gap: 10px;
}

.vm-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.vm-card {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.vm-card:hover {
    border-color: #6A3DFF;
    box-shadow: 0 2px 8px rgba(106, 61, 255, 0.2);
}

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

.vm-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.vm-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.vm-status.running {
    background: #27ae60;
    color: white;
}

.vm-status.stopped {
    background: #e74c3c;
    color: white;
}

.vm-status.paused {
    background: #f39c12;
    color: white;
}

.vm-status.creating {
    background: #3498db;
    color: white;
}

.vm-status.deleting {
    background: #95a5a6;
    color: white;
}

.vm-status.error {
    background: #e74c3c;
    color: white;
}

.vm-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.vm-info-item {
    display: flex;
    flex-direction: column;
}

.vm-info-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.vm-info-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

/* VM 사용률 표시 */
.vm-usage-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.vm-usage-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.vm-usage-fill.cpu {
    background: linear-gradient(90deg, #27ae60, #f39c12, #e74c3c);
}

.vm-usage-fill.memory {
    background: linear-gradient(90deg, #3498db, #f39c12, #e74c3c);
}

.vm-usage-fill.disk {
    background: linear-gradient(90deg, #9b59b6, #f39c12, #e74c3c);
}

/* VM 상태별 개선된 스타일 */
.vm-status.running {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.vm-status.stopped {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.vm-status.paused {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.vm-status.creating {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
    animation: pulse 2s infinite;
}

.vm-status.deleting {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

.vm-status.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.vm-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vm-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* VM 상태별 아이콘 */
.vm-status-icon {
    margin-right: 6px;
}

.vm-status.running .vm-status-icon::before {
    content: "●";
    color: #27ae60;
}

.vm-status.stopped .vm-status-icon::before {
    content: "●";
    color: #e74c3c;
}

.vm-status.paused .vm-status-icon::before {
    content: "⏸";
    color: #f39c12;
}

.vm-status.creating .vm-status-icon::before {
    content: "⏳";
    color: #3498db;
}

.vm-status.deleting .vm-status-icon::before {
    content: "🗑";
    color: #95a5a6;
}

.vm-status.error .vm-status-icon::before {
    content: "⚠";
    color: #e74c3c;
}

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: #27ae60; }
.text-warning { color: #f39c12; }
.text-danger { color: #e74c3c; }
.text-muted { color: #7f8c8d; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
