:root {
    --primary-color: #F54233;
    /* --background-color: #e7e7e7; */
    --background-color: #f4f4f9;
    --text-color: #161616;
    --light-gray: #e7e7e7;
    --dark-gray: #4d4d4d;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  /* padding-bottom: 3rem; */
  height: 100%;
  /* font-family: "Noto Color Emoji", "Segoe UI Emoji", sans-serif; */
}

/* 라이센스 관리 페이지 스타일 */
.license-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--dark-gray);
    border-radius: 12px;
    color: white;
}

.license-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.license-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    background-color: var(--light-gray);
    color: var(--text-color);
}

.license-status.active {
    border-left: 5px solid #4CAF50;
}

.license-status.warning {
    border-left: 5px solid #FF9800;
}

.license-status.expired, 
.license-status.deleted {
    border-left: 5px solid #F44336;
}

.license-status.error {
    border-left: 5px solid #9E9E9E;
}

.status-info {
    flex: 1;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.badge-active {
    background-color: #4CAF50;
    color: white;
}

.badge-warning {
    background-color: #FF9800;
    color: white;
}

.badge-expired, 
.badge-deleted {
    background-color: #F44336;
    color: white;
}

.badge-error {
    background-color: #9E9E9E;
    color: white;
}

.license-renewal {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.license-key-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.key-input-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    align-items: center;
}

.key-input {
    width: 80px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.key-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 66, 51, 0.2);
}

.key-input.error {
    border-color: #F44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.key-input-container span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #bdc3c7;
}

.apply-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    min-width: 200px;
}

.apply-button:hover {
    background-color: #e03a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 66, 51, 0.3);
}

.apply-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.back-button:hover {
    background-color: #2c3e50;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.backup-warning {
    background-color: #f39c12;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border-left: 5px solid #e67e22;
}

/* Footer 라이센스 클릭 효과 개선 (기존 스타일과 조화) */
.license-info {
    /* 기존 스타일 유지하면서 클릭 효과만 추가 */
    transition: all 0.3s ease;
}

.license-info:hover {
    /* 기존 툴팁 호버 효과와 조화되도록 */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .license-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .license-status {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .key-input-container {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }
    
    .key-input {
        width: 70px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .key-input-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .key-input-container span {
        display: none;
    }
    
    .key-input {
        width: 200px;
        margin-bottom: 0.5rem;
    }
    
    .license-renewal {
        padding: 1rem;
    }
}



.page_404 {
  color: black;
  display: flex; /* 부모 요소를 flexbox로 설정 */
  flex-direction: column; /* 세로 정렬 */
  /* justify-content: center; 세로 방향 중앙 정렬 */
  align-items: center; /* 가로 방향 중앙 정렬 */
  height: 100vh; /* 화면 전체 높이 설정 */
  text-align: center;
  margin-top: 100px;
}

.page_404 h1 {
  font-weight: bolder; /* font 속성이 아닌 font-weight 사용 */
  font-size: 50px;
  margin-bottom: 20px; /* 아래 간격 추가 */
}

.page_404 a {
  text-decoration: none; /* 기본적으로 밑줄 제거 */
  font-size: 18px;
  color: var(--primary-color); /* 링크 색상 설정 */
}

.page_404 a:hover {
  text-decoration: underline; /* 마우스를 올리면 밑줄 표시 */
}



  /* Main page styles */
.main-container {
    min-height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* .main-container h1 {
  font-family: sans-serif;
} */


.logo-container {
    margin-bottom: 50px;
    display: grid;
    place-items: center;
}

/* .logo-container h1 {
  text-align: center;
  font-size: 3rem;
  color: var(--light-gray);
  margin: 0;
  padding: 0;
} */

.main-logo {
    max-width: 500px;
    height: auto;
}

.care5g_logo {
  max-width: 250px;
  height: auto;
}

.menu-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.menu-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto; /* 가운데 정렬 */
}

/* 권한 분리 */
.menu-grid-normal {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.menu-grid-admin {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.menu-item {
    background-color: var(--dark-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, background-color 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.menu-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* 반응형 디자인 */
@media (max-width: 1500px) {
    /* .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    } */
    .main-logo {
        max-width: 300px;
    }
    .care5g_logo {
      max-width: 200px;
    }
}
@media (max-width: 800px) {
  .menu-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
      padding: 1rem;
  }
  .main-logo {
      max-width: 250px;
  }
  .care5g_logo {
    max-width: 150px;
  }
}

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

.modal-content {
    background-color: var(--light-gray);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--dark-gray);
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    overflow-y: auto;
}

.ue-type-select {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
  width: 100%;
}

.close {
    color: var(--dark-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* VoLTE 관련 테이블 스타일 */
.main-row {
  border-bottom: 1px solid #eee;
}
.ims-detail-row {
  border-bottom: 1px solid #ddd;
  font-size: 1em;
  background-color: #f9f9f9;
}
.ims-detail-row td {
  padding: 5px;
}

/* VOIP 배지 스타일 */
.volte-badge {
  font-size: 12px; 
  background-color: #4CAF50; 
  color: white; 
  padding: 2px 8px; 
  border-radius: 3px;
  display: inline-block;
}

.form-group {
    margin-bottom: 15px;
    margin-right: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
}
.form-group select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group input[type="radio"] {
    width: auto;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-container input {
  padding: 6px 10px;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-container button,
.reset-btn {
  padding: 6px 12px;
  background-color: var(--dark-gray);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.search-container button:hover,
.reset-btn:hover {
  background-color: var(--primary-color);
}

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

.reset-btn:hover {
  background-color: #5a6268;
}

.container {
  max-width: 90%;
  align-content: center;
  margin-top: 3rem;
}


/* 컨트롤 버튼 스타일 개선 */
.subscriber-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 총 구독자 수 표시 */
.total-count {
  font-size: 14px;
  color: #6c757d;
  font-weight: bold;
  padding: 6px 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* 중복 에러 모달 */
.duplicate-error-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.duplicate-error-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.duplicate-error-content h3 {
  margin-top: 0;
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.duplicate-error-content p {
  margin: 15px 0;
  color: #666;
  line-height: 1.5;
}

.duplicate-error-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.duplicate-error-buttons button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

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

.duplicate-ok-btn:hover {
  background-color: #c82333;
}


/* 필터 상태 표시 */
.filter-status {
  font-size: 12px;
  color: #6c757d;
  margin-left: 10px;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.filter-status.active {
  background-color: #e3f2fd;
  color: #1976d2;
  border-color: #1976d2;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .subscriber-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .controls-left,
  .controls-right {
    justify-content: center;
  }
  
  .search-container {
    flex-direction: column;
    width: 100%;
  }
  
  .search-container input {
    width: 100%;
  }
  
  .table-filter-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    max-height: 300px;
  }
}
/* 테이블 스타일 */
.subscriber-table {
  overflow-x: auto;  /* 필요시 가로 스크롤 생성 */
  margin: 20px 0;
}

.subscriber-table table {
  background-color: white;
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  white-space: nowrap;  /* 텍스트 줄바꿈 방지 */
  font-size: 14px;  /* 글자 크기 조정 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subscriber-table th {
  font-size: 15px;
  padding: 8px 6px;
  /* border: 1px solid black; */
  text-align: center;
}

.subscriber-table td {
  padding: 8px 6px;
  /* border: 1px solid var(--dark-gray); */
  text-align: center;
}

.subscriber-table th {
  background-color: var(--dark-gray);
  color: var(--light-gray);
}

.text-center {
  text-align: center;
}


.location-input,
.use-input,
.remarks-input {
    width: 90%;
    padding: 4px;
    border: 1px solid var(--light-gray);
    background-color: white;
    color: var(--text-color);
}
.save-location-btn,
.delete-btn {
  background-color: var(--dark-gray);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.delete-btn:hover,
.save-location-btn:hover {
  background-color: var(--primary-color);
}

/* .save-location-btn,
.delete-btn {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
  transition: background-color 0.3s
}
.delete-btn:hover,
.save-location-btn:hover {
  background-color: #b9b9b9;
} */




/* 페이징 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.page-link {
  padding: 8px 12px;
  background-color: var(--dark-gray);
  color: var(--light-gray);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s
}

.page-link:hover {
  background-color: gray;
  
}

.page-link.active {
  background-color: var(--primary-color);
}

/* 관리자용 버튼 스타일 */
.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s
}
.primary-btn:hover {
  background-color: rgb(255, 0, 0);
}
.primary-btn:disabled {
  background-color: var(--dark-gray);
  cursor: not-allowed;
}










/* equipment */
/* Equipment page layout */
.equipment-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  height: 100%;
  /* height: calc(100vh - 120px); */
  background-color: var(--background-color);
}

/* Sidebar styles */
.equipment-sidebar {
  width: 100px;
  background-color: var(--dark-gray);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.equipment-item {
  cursor: move;
  text-align: center;
  padding: 10px;
  background: var(--light-gray);
  border-radius: 4px;
  transition: transform 0.2s;
}

.equipment-item:hover {
  transform: scale(1.05);
}

.equipment-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
  pointer-events: none;
}

.equipment-item span {
  display: block;
  font-size: 12px;
  color: var(--text-color);
  pointer-events: none;
}

/* Main content area */
.equipment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0; /* Prevent flex item from overflowing */
}

/* Toolbar */
.equipment-toolbar {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 8px;
}

/* Tab styles */
.tab-container {
  background: white;
  padding: 10px;
  border-radius: 8px 8px 0 0;
}

.tabs {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tab {
  padding: 8px 15px;
  background: var(--light-gray);
  border-radius: 4px 4px 0 0;
  height: 30px;
  cursor: pointer;
}

.tab-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tab.active {
  background: var(--dark-gray);
  color: white;
}

.tab-title {
  min-width: 50px;
  outline: none;
  pointer-events: auto;
}

.tab .close-tab {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.tab:hover .close-tab {
  opacity: 1;
}

.add-tab {
  padding: 5px 10px;
  background: var(--dark-gray);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Floorplan area */
.floorplan-container {
  flex: 1;
  background: white;
  border-radius: 0 0 8px 8px;
  overflow: auto;
  position: relative;
}

.floorplan-wrapper {
  position: relative;
  width: 2000px;
  height: 1000px;
  background-color: #f8f9fa;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--light-gray);
}

/* Dragged equipment instances */
.equipment-instance {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: move;
}

.equipment-instance .icon-wrapper {
  width: 50px;
  height: 50px;
  background: white;
  border: 3px solid black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.equipment-instance img {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.equipment-instance input {
  width: 100px;
  padding: 4px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 12px;
}

/* 드래그 중인 아이템에 대한 스타일 */
.equipment-instance.dragging {
  opacity: 0.7;
  z-index: 1000;
}

.equipment-instance.dragging .icon-wrapper {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

/* 드롭된 후 아이템에 대한 스타일 */
.equipment-instance.dropped .icon-wrapper {
  animation: highlight-icon-drop 0.5s ease-in-out;
}

@keyframes highlight-icon-drop {
  0% { 
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-color);
  }
  50% {
    border-color: var(--primary-color);
    box-shadow: 0 0 6px 2px var(--primary-color);
  }
  100% { 
    border-color: black;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* 저장 버튼에 변경사항 표시 스타일 */
#saveButton.unsaved-changes {
  background-color: var(--primary-color);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.equipment-instance .remove-equipment {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.equipment-instance:hover .remove-equipment {
  opacity: 1;
}

/* Prevent text selection during drag */
.equipment-container * {
  user-select: none;
}

/* ###########  Guideline 페이지  ############### */
.guidelines-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem;
}
.guidelines-container h2{
  margin-top: 0;
}
.guidelines-content {
  background: #ffffff;
  padding: 20px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.guidelines-content img{
  width: 80%;
  margin: 1rem;
}
/* .log-download-section {

} */
.log-download {
  background: #ffffff;
  padding: 20px;
  padding-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
.btn-secondary {
  background-color: var(--dark-gray);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-secondary:hover {
  background-color: var(--primary-color);
}





/* 컨피그 페이지 */
.config-container {
  max-width: 70%;
  margin: 0 auto;
  padding: 2rem;
}

.plmn {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.plmn h2 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.current-plmn {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 4px;
}

.current-plmn span {
  font-size: 1.1rem;
}

.current-plmn span:nth-child(odd) {
  font-weight: bold;
}

.change-plmn {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.change-plmn input:focus {
  outline: none;
  border-color: var(--primary-color);
} 

.submit {
  background-color: var(--dark-gray);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit:hover {
  background-color: var(--primary-color);
}

/* Responsive design */
/* @media (max-width: 768px) {
  .config-container {
      max-width: 100%;
      padding: 1rem;
  }
  
  .change-plmn {
      flex-direction: column;
      align-items: stretch;
  }
  
  .change-plmn input {
      width: 100%;
  }
} */

.dnn {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.current-dnn {
  /* display: flex; */
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 4px;
}
.current-dnn span {
  font-size: 1.1rem;
  font-weight: bold;
}
.dnn-list {
  margin-top: 15px;
}
.session-item {
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
}
.session-item:hover {
  background-color: #f5f5f5;
}
.session-editor {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: var(--background-color);
}
.cancel {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 4px;
}
.cancel:hover {
  background-color: #d32f2f;
}


.nssai {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.current-nssai {
  /* display: flex; */
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 4px;
}
.current-nssai span {
  font-size: 1.1rem;
  font-weight: bold;
}
.nssai-list {
  margin-top: 15px;
}
.nssai-item {
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
}
.nssai-item:hover {
  background-color: #f5f5f5;
}
.nssai-editor {
  display: block;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: var(--background-color);
}
.cancel-nssai-edit{
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 4px;
}
.cancel-nssai-edit:hover {
  background-color: #d32f2f;
}






/* 업타임 시각화 스타일 - 그라파나 스타일로 */
.uptime-info {
  padding: 0;
  margin-bottom: 10px;
}

.uptime-visual {
  display: flex;
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 10px;
  border-left: 4px solid #4CAF50;
  transition: all 0.3s ease;
}

.uptime-visual:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
}

.uptime-visual.offline {
  border-left: 3px solid #F44336;
  background-color: #ffebee;
}

.uptime-header {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-color);
  margin-left: 30px;
  letter-spacing: 1px;
}

.uptime-value {
  font-size: 15px;
  font-weight: bold;
  margin-left: 20px;
  font-family: Arial, sans-serif;
  color: #4CAF50;
}

.offline-server .uptime-value {
  color: #F44336;
  animation: blinkText 2s infinite;
}

.uptime-icon {
  font-size: 18px;
  color: #F44336;
  margin-left: 20px;
  animation: pulse 2s infinite;
}

.uptime-footer {
  font-size: 12px;
  color: #777;
  margin-left: auto;
  margin-right: 30px;
  font-style: italic;
}

.uptime-bar-container {
  margin: 10px 0;
}

.uptime-bar {
  height: 5px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin: 5px 0;
  overflow: hidden;
}

.uptime-bar-fill {
  height: 100%;
  background-color: #4CAF50;
  border-radius: 2px;
  transition: width 0.5s ease-in-out;
}

.uptime-bar-label {
  font-size: 11px;
  color: #777;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}

.uptime-bar-value {
  font-size: 11px;
  color: #333;
  text-align: right;
  margin-bottom: 10px;
  font-weight: bold;
}

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

@keyframes blinkText {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* 도넛 차트 크기 조정 */
.donut-chart {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

/* 서버 상태 카드 개선 */
.server-status {
  background: #fff;
  padding: 0 20px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.server-status h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
  /* border-bottom: 1px solid #eee; */
  /* padding-bottom: 10px; */
}

.server-status.offline {
  background-color: #ffebee;
  border-left: 4px solid #F44336;
}

/* 메트릭 그리드 개선 */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.metric-item:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
}

.metric-item span:first-child {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.metric-item span:nth-child(2) {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}








/* 내비게이션 메뉴 업데이트 알림 스타일 */
.navbar-menu a.has-updates {
  position: relative;
  animation: blink 1s infinite alternate;
}

.navbar-menu a.has-updates::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background-color: #fce914;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes blink {
  0% { color: var(--text-color); }
  100% { color: #fce914; }
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* History 변동사항 모달 스타일 */
.history-notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    min-width: 500px;
    max-width: 700px;
    max-height: 70vh;
    overflow: hidden;
    display: none;
}

.modal-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 1rem 1.5rem;
    max-height: calc(70vh - 140px);
    overflow-y: auto;
}

.modal-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goto-history-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.goto-history-btn:hover {
    background: darkred;
}

.modal-info {
    font-size: 0.9rem;
    color: #666;
}

.notification-item {
    padding: 0.75rem;
    border-left: 4px solid #fce914;
    background: #fffacd;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    animation: slideIn 0.3s ease-out;
}

.notification-item.new {
    animation: highlightNew 2s ease-out;
}

.notification-time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.notification-content {
    font-weight: bold;
    color: #333;
}

.notification-details {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.25rem;
}

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

@keyframes highlightNew {
    0% { background: #90EE90; }
    100% { background: #fffacd; }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

@media (max-width: 800px) {
    .history-notification-modal {
        min-width: 90%;
        max-width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .goto-history-btn {
        width: 100%;
    }
}













/* 로그 페이지 스타일 */
.log-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem;
  margin-bottom: 20px;
}

.log-container h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.log-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background-color: white;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.tab-button {
  padding: 0.5rem 1.5rem;
  border: none;
  background-color: var(--light-gray);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.tab-button:hover {
  background-color: #ddd;
}

.tab-button.active {
  background-color: var(--dark-gray);
  color: white;
}

.log-content {
  background-color: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.log-window {
  height: 60vh;
  overflow-y: auto;
  padding: 1rem;
  background-color: #1e1e1e;
  color: #f0f0f0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.log-controls {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  align-items: center;
}

.log-search {
  flex: 1;
  display: flex;
  gap: 0.5rem;
}

.log-search input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* 로그 라인 스타일 */
.log-line {
  padding: 2px 0;
  white-space: pre-wrap;
  word-break: break-all;
  text-align: left;
}

/* 로그 키워드 색상 - 특정 단어만 적용 */
.log-error , .log-refused {
  color: #ff5252;
  font-weight: bold;
}

.log-info {
  color: #42a5f5;
  font-weight: bold;
}

.log-warning {
  color: #ffab40;
  font-weight: bold;
}

.log-success {
  color: #66bb6a;
  font-weight: bold;
}

.log-removed {
  color: #ff9800;
  font-weight: bold;
}

/* 버튼 스타일 */
.log-controls button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--dark-gray);
  color: white;
  transition: background-color 0.3s;
}

.log-controls button:hover {
  background-color: var(--primary-color);
}

.log-controls button.paused {
  background-color: var(--primary-color);
}

/* 기타 상태 메시지 */
.log-loading, .log-error, .log-empty {
  padding: 2rem;
  color: #aaa;
  text-align: left;
}

.log-error {
  color: #ff5252;
}

/* 로그 라인 줄바꿈 방지 */
.log-line {
  white-space: nowrap;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .log-container {
    max-width: 95%;
    padding: 1rem;
  }
  
  .log-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .auto-scroll {
    margin-top: 0.5rem;
  }
}

/* 자동 스크롤 체크박스 스타일 */
.auto-scroll {
  display: flex;
  align-items: center;
}

.auto-scroll label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.auto-scroll input[type="checkbox"] {
  margin: 0;
}








/* Server control buttons */
.server-header {
  position: relative;
  margin-bottom: 10px;
}

.server-title {
  text-align: center;
  margin: 0;
  margin-top: 0.5rem;
  font-size: 18px;
  color: #333;
}

.server-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 5px;
}

.server-control-btn {
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 60px;
}

.reboot-btn {
  background-color: #ff9800;
  color: white;
}

.reboot-btn:hover {
  background-color: #f57c00;
  transform: translateY(-1px);
}

.shutdown-btn {
  background-color: #f44336;
  color: white;
}

.shutdown-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-1px);
}

.cancel-btn {
  background-color: #4CAF50;
  color: white;
  display: none;
}

.cancel-btn:hover {
  background-color: #388E3C;
  transform: translateY(-1px);
}

.server-control-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.server-control-btn:disabled:hover {
  transform: none;
}

/* 확인 모달 스타일 */
.confirm-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.confirm-modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.confirm-modal-content h3 {
  margin-top: 0;
  color: #333;
}

.confirm-modal-content p {
  margin: 15px 0;
  color: #666;
  line-height: 1.5;
}

.confirm-modal-content p strong {
  color: #d32f2f;
  font-weight: bold;
}

.confirm-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.confirm-modal-buttons button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.confirm-yes {
  background-color: #f44336;
  color: white;
}

.confirm-yes:hover {
  background-color: #d32f2f;
}

.confirm-no {
  background-color: #6c757d;
  color: white;
}

.confirm-no:hover {
  background-color: #5a6268;
}

/* 카운트다운 표시 */
.countdown-display {
  display: none;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 8px;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  color: #856404;
  margin-bottom: 0.5rem;
}

.countdown-display.active {
  display: block;
}

/* 경고 박스 스타일 */
.warning-box {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
}

.danger-box {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
}

.warning-box h4 {
  margin-top: 0;
  color: #856404;
}

.danger-box h4 {
  margin-top: 0;
  color: #721c24;
}

.warning-box ul li {
  margin: 5px 0;
  color: #856404;
}

.danger-box ul li {
  margin: 5px 0;
  color: #721c24;
}

.confirm-warning {
  background-color: #ff9800 !important;
}

.confirm-warning:hover {
  background-color: #f57c00 !important;
}

.confirm-danger {
  background-color: #d32f2f !important;
  animation: pulse-danger 2s infinite;
}

.confirm-danger:hover {
  background-color: #b71c1c !important;
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}








/* UE 모달 헤더와 필터 */
.ue-modal-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  color: #495057;
}

.ue-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  background-color: white;
  margin: 0;
  cursor: pointer; /* 클릭 가능하다는 표시 */
  transition: background-color 0.2s ease; /* 호버 효과 */
}

.ue-filter-item:hover {
  background-color: #f8f9fa; /* 호버 시 배경색 변경 */
}

.ue-filter-label {
  font-size: 14px;
  margin-right: 8px;
  flex: 1;
}

.filter-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #6c757d;
  padding: 4px 6px;
  border-radius: 3px;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.filter-dropdown-btn:hover {
  background-color: #e9ecef;
  color: #495057;
}

.filter-dropdown-btn::after {
  content: "▼";
  font-size: 10px;
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 120px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.filter-dropdown-menu.show {
  display: block;
}

.filter-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.filter-dropdown-item:hover {
  background-color: #f8f9fa;
}

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

.filter-dropdown-item.selected {
  background-color: #e3f2fd;
  color: #1976d2;
  font-weight: bold;
}

/* UE 모달 컨텐츠 개선 */
.ue-modal-content {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  position: relative; /* 갱신 인디케이터를 위한 포지션 */
}

.ue-list-container {
  padding: 0;
  position: relative; /* 갱신 인디케이터를 위한 포지션 */
}

/* 갱신 인디케이터 애니메이션 */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* 갱신 중 표시 */
.refreshing-indicator {
  animation: fadeInOut 2s ease-in-out;
}

/* UE 아이템 그리드 레이아웃 */
.ue-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  padding: 6px 15px; /* 12px에서 6px로 줄임 */
  border-bottom: 1px solid #eee;
  align-items: center;
  min-height: 35px; /* 50px에서 35px로 줄임 */
}

.ue-item-grid:hover {
  background-color: #f8f9fa;
}

.ue-item-grid.active {
  background-color: #d4edda;
  border-left: 4px solid #28a745;
}

.ue-item-grid.inactive {
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
}

.ue-grid-cell {
  font-size: 13px;
  padding: 2px 4px; /* 4px에서 2px로 줄임 */
  word-break: break-all;
  line-height: 1.2; /* 줄 높이 조정 */
}

.ue-grid-cell.ip {
  font-weight: bold;
  font-family: monospace;
}

.ue-grid-cell.status {
  font-weight: bold;
  text-align: center;
}

/* IP 상태 표시 스타일 */
.ip-status {
  color: #6c757d;
  font-weight: normal;
  margin-left: 8px;
  font-size: 12px; /* 상태 텍스트 크기 줄임 */
}

.ip-status.active {
  color: #28a745;
}

.ip-status.inactive {
  color: #dc3545;
}

/* 필터 활성 상태 표시 */
.filter-active {
  background-color: #e3f2fd !important;
  color: #1976d2 !important;
}

/* 빈 상태 메시지 */
.ue-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .ue-modal-header,
  .ue-item-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .ue-filter-item {
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
  }
  
  .filter-dropdown-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
  }
}