 /* RESET */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: Roboto, sans-serif;
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     background: #fff;
     color: #333;
 }

 /* HEADER */
 .header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background-image: url('https://jpgstaff.csawebapp.com/assets/csa/images/header-bg.jpg');
     background-size: auto;
     color: #fff;
     padding: 35px 15px;
 }

 .header .logo {
     width: 80px;
     object-fit: contain;
     filter: brightness(0) invert(1);
 }

 .header-title {
     font-weight: bold;
     font-style: italic;
     text-transform: uppercase;
     font-size: 17px !important;
 }

 .menu-icon {
     /* font-size: 28px;
     cursor: pointer;
     z-index: 1101; */

     width: 90px;
     /* besar tapi terkawal */
     height: auto;
     margin-bottom: 15px;
 }

 /* NEWS */
 .news-section {
     background: url('https://jpgstaff.csawebapp.com/assets/csa/images/news-bg.jpg');
     height: 200px;
     position: relative;
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.8s ease;
 }

 .news-section.visible {
     opacity: 1;
     transform: translateY(0);
 }

 .news-content {
     position: absolute;
     top: 20px;
     left: 20px;
     right: 20px;
     color: #fff;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
 }

 .news-content h3 {
     font-weight: bold;
     margin-bottom: 5px;
 }

 .news-meta {
     font-size: 12px;
     margin-bottom: 10px;
 }

 .news-text {
     font-size: 10px;
     line-height: 1.4;
     max-height: 200px;
     overflow: hidden;
 }

 #newsModal .modal-content {
     border-radius: 10px;
 }

 #newsModal .modal-body {
     padding: 18px;
 }


 /* bind carousel ikut height news-section */
 .news-carousel,
 .news-carousel .carousel-inner,
 .news-carousel .carousel-item {
     height: 100%;
 }

 /* pastikan arrow stay dalam banner, bukan naik header */
 .news-carousel .carousel-control-prev,
 .news-carousel .carousel-control-next {
     width: 10%;
     top: 0;
     bottom: 0;
 }

 /* optional: bagi arrow nampak lebih kemas */
 .news-carousel .carousel-control-prev-icon,
 .news-carousel .carousel-control-next-icon {
     transform: scale(1.1);
 }


 /* PROFILE */
 .profile {
     text-align: center;
     padding: 20px 10px;
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.8s ease;
 }

 .profile.visible {
     opacity: 1;
     transform: translateY(0);
 }

 .avatar {
     width: 80px;
     border-radius: 50%;
     margin-bottom: 8px;
 }

 .profile-name {
     color: #404040;
     font-size: 14px;
     text-transform: uppercase;
     font-weight: bold;
 }

 /* MENU GRID */
 .menu-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 20px;
     padding: 20px;
     text-align: center;
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.8s ease;
 }

 .menu-wrapper {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 20px;
     padding: 30px 20px;
 }

 .menu-grid.visible {
     opacity: 1;
     transform: translateY(0);
 }

 .menu-item .card {
     /* background: #f8f8f8;
     border: 1px solid #ddd;
     border-radius: 12px;
     padding: 20px 10px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
     transition: transform 0.2s, box-shadow 0.2s; */

     background: #f8f8f8;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;

     text-align: center;
     padding: 20px 10px;
 }

 .menu-item .card:hover {
     transform: translateY(-3px);
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
 }

 .menu-item img {
     width: 50px;
     margin-bottom: 10px;
 }

 .menu-item p {
     font-size: 13px;
     color: #404040;
     font-weight: 600;
     margin: 0;
 }


 .icon-box {
     width: 100px;
     height: 70px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .icon-box img {
     width: 50%;
     /* height: 50%; */
     object-fit: contain;
     /* penting */
 }

 /* SOS BUTTON */
 .sos-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     width: 150px;
     margin: 20px auto;
     padding: 12px 20px;
     background: red;
     color: #fff;
     font-weight: bold;
     border-radius: 30px;
     font-size: 25px;
     cursor: pointer;
     text-decoration: none;
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.8s ease;
 }

 .sos-btn.visible {
     opacity: 1;
     transform: translateY(0);
 }

 .sos-btn .sos-icon {
     width: 24px;
     height: auto;
 }

 /* ADS */
 .ads {
     display: flex;
     justify-content: space-between;
     gap: 5px;
     padding: 10px;
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.8s ease;
 }

 .ads.visible {
     opacity: 1;
     transform: translateY(0);
 }

 .ads img {
     flex: 1;
     height: 80px;
     object-fit: cover;
     border-radius: 4px;
 }

 /* VERSION */
 .version {
     font-size: 10px;
     text-align: right;
     padding: 5px 10px;
     color: #555;
 }

 /* SLIDER MENU */
 .side-menu {
     position: fixed;
     top: 0;
     right: -300px;
     width: 300px;
     height: 100%;
     background: #fff;
     transition: right 0.3s ease;
     z-index: 1100;
 }

 .side-menu.active {
     right: 0;
 }

 .side-menu a {
     display: flex;
     align-items: center;
     padding: 25px 25px;
     color: #404040;
     text-decoration: none;
     font-size: 12px;
     transition: background 0.2s;
 }

 .side-menu a img {
     width: 22px;
     margin-right: 30px;
 }

 /* Banner inside menu */
 .banner-wrapper {
     position: relative;
 }

 .menu-logo {
     position: absolute;
     top: 10px;
     left: 25px;
     width: 80px;
     height: auto;
     filter: brightness(0) invert(1);
 }

 .menu-banner {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 /* Overlay */
 .overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s ease;
     z-index: 1099;
 }

 .overlay.active {
     opacity: 1;
     visibility: visible;
 }

 /* Profile */
 .register-wrapper {
     padding: 20px;
 }

 /* h3 {
     margin: 20px 0 10px;
     font-size: 20px;
     font-weight: 600;
     color: #222;
 } */

 /* h4 {
     margin: 20px 0 20px;
 } */

 label {
     display: block;
     margin-bottom: 6px;
     font-weight: 500;
     color: #444;
 }

 select,
 input {
     width: 100%;
     padding: 10px 12px;
     margin-bottom: 18px;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 15px;
     transition: border-color 0.3s;
 }

 select:focus,
 input:focus {
     border-color: #007aff;
     outline: none;
 }

 .button-group {
     display: flex;
     justify-content: space-between;
     gap: 10px;
     margin-top: 10px;
 }

 .btn {
     flex: 1;
     padding: 12px;
     font-size: 15px;
     font-weight: 600;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     transition: background 0.3s ease;
 }

 .btn-back {
     background-color: #d3d3d3;
     color: #333;
 }

 .btn-next {
     background-color: #00a2a8;
     color: white;
 }

 .btn-next:hover {
     background-color: #08878c;
 }

 .edit-button-group {
     display: flex;
     gap: 10px;
     margin: 10px 0 20px;
 }

 .tooltip-wrapper {
     position: relative;
     display: inline-block;
     width: 100%;
 }

 .custom-tooltip {
     visibility: hidden;
     opacity: 0;
     background-color: #333;
     color: #fff;
     text-align: center;
     padding: 8px;
     border-radius: 5px;
     position: absolute;
     bottom: 110%;
     left: 0;
     z-index: 10;
     transition: opacity 0.3s;
     width: 100%;
     font-size: 0.85em;
 }


 /* RESET */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: Roboto, sans-serif;
 }

 /* VERSION */
 .version {
     font-size: 10px;
     text-align: right;
     padding: 10px 20px;
     color: #555;
 }



 select,
 input {
     width: 100%;
     padding: 10px 12px;
     margin-bottom: 18px;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 15px;
     transition: border-color 0.3s;
 }

 select:focus,
 input:focus {
     border-color: #007aff;
     outline: none;
 }

 .button-group {
     display: flex;
     justify-content: space-between;
     gap: 10px;
     margin-top: 10px;
 }

 .btn {
     flex: 1;
     padding: 12px;
     font-size: 15px;
     font-weight: 600;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     transition: background 0.3s ease;
 }

 .btn-back {
     background-color: #d3d3d3;
     color: #333;
 }

 .btn-next {
     background-color: #00a2a8;
     color: white;
 }

 .btn-next:hover {
     background-color: #08878c;
 }

 /* Password */
 .password-wrapper {
     position: relative;
 }

 .password-wrapper input {
     padding-right: 40px;
 }

 .toggle-password {
     position: absolute;
     top: 50%;
     right: 10px;
     transform: translateY(-90%);
     cursor: pointer;
     user-select: none;
     font-size: 22px;
     color: #666;
 }

 /* ISSUE SECTION */
 .issue-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin: 30px 20px;
 }

 .issue-header h2 {
     font-size: 20px;
     font-weight: bold;
 }

 .register-btn {
     background: #00a693;
     color: #fff;
     border: none;
     border-radius: 20px;
     padding: 6px 15px;
     font-size: 14px;
     font-weight: bold;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .register-btn:hover {
     background: #008c7b;
 }

 /* Tabs */
 .tabs {
     display: flex;
     justify-content: center;
     gap: 50px;
     margin: 0 20px 20px;
     font-size: 16px;
 }

 .tab {
     cursor: pointer;
     padding-bottom: 6px;
 }

 .tab.active {
     font-weight: bold;
     color: #00a693;
     border-bottom: 3px solid #00a693;
 }

 /* Issue Cards */
 .issue-card {
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: #fafafa;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     padding: 12px 15px;
     margin: 0 20px 12px;
 }

 .issue-info {
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 .issue-ref {
     font-weight: bold;
     text-transform: uppercase;
 }

 .issue-date {
     font-size: 14px;
     color: #555;
 }

 .issue-label {
     font-size: 13px;
     color: #666;
     text-transform: uppercase;
 }

 .issue-status {
     font-size: 14px;
     font-weight: bold;
     color: #00a693;
 }

 /* FORM WRAPPER */
 .facility-wrapper {
     padding: 20px;
 }

 h3 {
     /* margin: 20px 0 40px; */
     font-size: 20px;
     font-weight: 600;
     color: #222;
 }

 /* label {
     display: block;
     margin-bottom: 6px;
     font-weight: 500;
     color: #444;
 } */

 select,
 input,
 textarea {
     width: 100%;
     padding: 10px 12px;
     margin-bottom: 18px;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 15px;
     transition: border-color 0.3s;
 }

 select:focus,
 input:focus,
 textarea:focus {
     border-color: #007aff;
     outline: none;
 }

 textarea {
     min-height: 200px;
     resize: vertical;
 }

 /* Upload */
 .upload-section {
     margin-top: 20px;
 }

 .upload-box {
     border: 2px dashed #ccc;
     padding: 15px;
     border-radius: 10px;
     text-align: center;
     cursor: pointer;
     margin-top: 10px;
 }

 .image-preview {
     display: flex;
     gap: 10px;
     margin-top: 10px;
     flex-wrap: wrap;
 }

 .image-preview img {
     width: 80px;
     height: 80px;
     object-fit: cover;
     border-radius: 5px;
     border: 1px solid #ddd;
 }

 /* RESPONSIVE */
 @media (max-width: 900px) {
     .menu-grid {
         grid-template-columns: repeat(3, 1fr);
     }
 }

 @media (max-width: 576px) {
     .menu-icon {
         width: 70px;
     }
 }