/* ------ default ------ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.header {
    background: #1e5631;
    padding: 25px 0;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

 .header-content {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     align-items: center;
     gap: 25px;
     padding: 0 20px;
 }

.logo {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.title-section {
     flex: 1;
     min-width: 0;
}

.title-section h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.login-info {
     flex-shrink: 0;
     text-align: right;
}

 .nav-menu {
     background: rgba(30, 86, 49, 0.95);
     padding: 10px 0;
     border-top: 1px solid rgba(255,255,255,0.1);
 }

 .nav-menu-content {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 2px;
     background: rgba(255,255,255,0.1);
     padding: 2px;
     border-radius: 4px;
 }

 .nav-menu-content a {
     color: white;
     text-decoration: none;
     padding: 12px 15px;
     font-weight: 500;
     font-size: 14px;
     text-align: center;
     background: rgba(30, 86, 49, 0.95);
     transition: all 0.2s ease;
 }

 .nav-menu-content a:first-child {
     border-radius: 3px 0 0 3px;
 }

 .nav-menu-content a:last-child {
     border-radius: 0 3px 3px 0;
 }

 .nav-menu-content a:hover {
     background: rgba(255,255,255,0.15);
 }

 .nav-menu-content a.active {
     background: #4caf50;
     font-weight: 600;
 }

 .content-container {
     max-width: 1200px;
     margin: 20px auto;
     padding: 20px;
 }

 .restaurant-list-container {
     background: white;
     border-radius: 8px;
     padding: 30px;
     border: 2px solid #333;
 }

 .full-list-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 30px;
 }

 .full-list-title {
     display: flex;
     align-items: flex-start;
     gap: 15px;
 }

 .full-list-icon {
     width: 30px;
     height: 30px;
     flex-shrink: 0;
     margin-top: 5px;
 }

 .title-text h2 {
     font-size: 20px;
     font-weight: 600;
     color: #333;
     margin: 0 0 5px 0;
     line-height: 1.3;
 }

 .title-text .count {
     font-size: 16px;
     color: #666;
     font-weight: 400;
 }

 .export-btn {
     background: linear-gradient(135deg, #1e5631 0%, #2d7d32 100%);
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 6px;
     cursor: pointer;
     font-weight: 500;
     font-size: 14px;
     font-family: 'Prompt', sans-serif;
     text-decoration: none;
     display: inline-block;
 }

 .export-btn:hover {
     background: linear-gradient(135deg, #0f2819 0%, #1e5631 100%);
 }

 .restaurant-table {
     width: 100%;
     border-collapse: collapse;
 }

 .restaurant-table th {
     background-color: #f8f9fa;
     color: #333;
     font-weight: 600;
     padding: 15px 12px;
     text-align: left;
     border-bottom: 2px solid #333;
     font-size: 14px;
 }

 .restaurant-table td {
     padding: 12px;
     border-bottom: 1px solid #e0e0e0;
     font-size: 14px;
     color: #333;
     vertical-align: middle;
 }

 .restaurant-table tr:hover {
     background-color: #f8f9fa;
 }

 .restaurant-table tr:hover td {
     cursor: pointer;
 }

 .rank-col { width: 8%; text-align: center; font-weight: 600; }
 .name-col { width: 25%; }
 .level-col { width: 15%; text-align: center; }
 .province-col { width: 12%; text-align: center; }
 .district-col { width: 12%; text-align: center; }
 .subdistrict-col { width: 12%; text-align: center; }
 .coordinate-col { width: 10%; text-align: center; font-size: 12px; }
 .action-col { width: 6%; text-align: center; }

 .level-badge {
     background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
     color: white;
     padding: 8px 16px;
     border-radius: 20px;
     font-weight: 600;
     font-size: 14px;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     min-width: 80px;
     justify-content: center;
 }
 .level-badge2 {
     background: linear-gradient(135deg, #F0E002 0%, #DECF02 100%);
     color: white;
     padding: 8px 16px;
     border-radius: 20px;
     font-weight: 600;
     font-size: 14px;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     min-width: 80px;
     justify-content: center;
 }
 .level-badge3 {
     background: linear-gradient(135deg, #18E002 0%, #16BD04 100%);
     color: white;
     padding: 8px 16px;
     border-radius: 20px;
     font-weight: 600;
     font-size: 14px;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     min-width: 80px;
     justify-content: center;
 }
 .pagination a.active {
  background-color: #4CAF50;
  color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;}
 .level-icon {
     width: 14px;
     height: 14px;
     fill: white;
 }

 .salt-unit {
     font-size: 11px;
     opacity: 0.9;
 }

 .detail-btn {
     background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
     color: white;
     border: none;
     padding: 8px 12px;
     border-radius: 6px;
     font-weight: 500;
     cursor: pointer;
     font-size: 12px;
     font-family: 'Prompt', sans-serif;
     transition: all 0.2s ease;
     white-space: nowrap;
 }

 .detail-btn:hover {
     background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
     transform: translateY(-1px);
 }

 .back-btn {
     background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 6px;
     font-weight: 500;
     cursor: pointer;
     font-size: 14px;
     font-family: 'Prompt', sans-serif;
     margin-bottom: 20px;
     text-decoration: none;
     display: inline-block;
 }

 .back-btn:hover {
     background: linear-gradient(135deg, #495057 0%, #343a40 100%);
 }

 .pagination {
     margin-top: 30px;
     display: flex;
     justify-content: center;
     gap: 10px;
 }

 .pagination a {
     padding: 8px 12px;
     border: 1px solid #dee2e6;
     color: #333;
     text-decoration: none;
     border-radius: 4px;
     font-weight: 500;
 }

 .pagination a:hover {
     background-color: #f8f9fa;
 }

 .pagination a.active {
     background-color: #1e5631;
     color: white;
     border-color: #1e5631;
 }

 .detail-section {
     display: none;
     margin-top: 30px;
     padding: 30px;
     background: white;
     border-radius: 8px;
     border: 2px solid #007bff;
 }

 .detail-section.show {
     display: block;
 }

 .restaurant-info {
     display: flex;
     gap: 20px;
     margin-bottom: 30px;
     padding: 20px;
     background: #f8f9fa;
     border-radius: 8px;
 }

 .restaurant-image {
     width: 150px;
     height: 120px;
     background: #e9ecef;
     border-radius: 8px;
     flex-shrink: 0;
     overflow: hidden;
 }

 .restaurant-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .restaurant-details {
     flex: 1;
 }

 .restaurant-name {
     font-size: 20px;
     font-weight: 600;
     color: #333;
     margin-bottom: 10px;
 }

 .restaurant-meta {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 10px;
     font-size: 14px;
     color: #666;
 }

 .close-detail-btn {
     background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
     color: white;
     border: none;
     padding: 8px 16px;
     border-radius: 6px;
     font-weight: 500;
     cursor: pointer;
     font-size: 14px;
     font-family: 'Prompt', sans-serif;
     float: right;
     margin-bottom: 20px;
 }

 .close-detail-btn:hover {
     background: linear-gradient(135deg, #495057 0%, #343a40 100%);
 }

 .food-detail-modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0,0,0,0.8);
     z-index: 1000;
     padding: 20px;
 }

 .food-detail-modal.show {
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .food-detail-content {
     background: white;
     border-radius: 12px;
     padding: 0;
     max-width: 1000px;
     width: 100%;
     max-height: 90vh;
     overflow-y: auto;
     position: relative;
     border: 3px solid #333;
 }

 .food-detail-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 20px 30px;
     border-bottom: 2px solid #333;
     background: #f8f9fa;
 }

 .food-detail-title {
     font-size: 18px;
     font-weight: 600;
     color: #333;
 }

 .close-modal-btn {
     background: #dc3545;
     color: white;
     border: none;
     border-radius: 50%;
     width: 40px;
     height: 40px;
     font-size: 20px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .close-modal-btn:hover {
     background: #c82333;
 }

 .food-info-main {
     display: grid;
     grid-template-columns: 1fr 1fr;
     min-height: 500px;
 }

 .food-info-left {
     padding: 30px;
     border-right: 2px solid #333;
     background: white;
 }

 .food-info-right {
     padding: 30px;
     background: white;
 }

 .left-title {
     font-size: 18px;
     font-weight: 600;
     color: #333;
     margin-bottom: 20px;
 }

 .right-title {
     font-size: 18px;
     font-weight: 600;
     color: #333;
     margin-bottom: 20px;
 }

 .restaurant-info-item {
     display: flex;
     margin-bottom: 15px;
     font-size: 16px;
 }

 .restaurant-info-label {
     font-weight: 500;
     color: #333;
     min-width: 180px;
 }

 .restaurant-info-value {
     font-weight: 400;
     color: #333;
 }

 .salt-level-red {
     color: #dc3545;
     font-weight: 600;
 }

 .food-image-container {
     margin-bottom: 20px;
 }

 .food-image {
     width: 100%;
     height: 250px;
     background: #f8f9fa;
     border-radius: 8px;
     overflow: hidden;
     border: 2px solid #ddd;
 }

 .food-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .food-detail-item {
     display: flex;
     margin-bottom: 12px;
     font-size: 16px;
 }

 .food-detail-label {
     font-weight: 500;
     color: #333;
     min-width: 180px;
 }

 .food-detail-value {
     font-weight: 400;
     color: #333;
 }

 @media (max-width: 1024px) {
     .header-content {
         flex-direction: column;
         text-align: center;
         gap: 15px;
     }

     .restaurant-table {
         font-size: 11px;
     }

     .rank-col { width: 10%; }
     .name-col { width: 30%; }
     .level-col { width: 20%; }
     .province-col { width: 10%; }
     .district-col { width: 10%; }
     .subdistrict-col { width: 10%; }
     .coordinate-col { display: none; }
     .action-col { width: 10%; }

     .food-info-main {
         grid-template-columns: 1fr;
     }

     .food-info-left {
         border-right: none;
         border-bottom: 2px solid #333;
     }
 }

 @media (max-width: 768px) {
     .nav-menu-content {
         grid-template-columns: 1fr;
         gap: 1px;
     }

     .nav-menu-content a {
         border-radius: 0 !important;
     }

     .nav-menu-content a:first-child {
         border-radius: 3px 3px 0 0 !important;
     }

     .nav-menu-content a:last-child {
         border-radius: 0 0 3px 3px !important;
     }

     .restaurant-table {
         font-size: 10px;
     }

     .restaurant-table th,
     .restaurant-table td {
         padding: 8px 4px;
     }

     .district-col,
     .subdistrict-col {
         display: none;
     }

     .rank-col { width: 12%; }
     .name-col { width: 40%; }
     .level-col { width: 25%; }
     .province-col { width: 13%; }
     .action-col { width: 10%; }

     .restaurant-info {
         flex-direction: column;
         text-align: center;
     }

     .restaurant-meta {
         grid-template-columns: 1fr;
     }

     .food-detail-content {
         margin: 10px;
     }

     .food-info-left,
     .food-info-right {
         padding: 20px;
     }

     .restaurant-info-label,
     .food-detail-label {
         min-width: 140px;
         font-size: 14px;
     }

     .restaurant-info-item,
     .food-detail-item {
         font-size: 14px;
     }
 }
