/* -------------------------------------
   Import Fonts & Icons
------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* -------------------------------------
   Reset & Global Styles
------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f4f6f8;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

a {
    color: #0000ff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #155a96;
}

.mssgBox{
    background:#ffeaea;
    border:1px solid #ff0000;
    padding:15px;
    margin-bottom:30px;
    border-radius:6px;
    color:#b30000;
    font-size:14px;
}

.mssgBox2{
background:#ffeaea;
border:1px solid #ff0000;
border-radius:6px;
padding:12px;
margin-bottom:30px;
clear:both;
}

.wa-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#25D366;
    color:white;
    padding:5px 10px;
    font-size:12px;
    border-radius:6px;
    text-decoration:none;
    font-weight:500;
    transition:all 0.2s ease;
}

.wa-btn:hover{
    background:#1ebe5d;
    text-decoration:none;
    color:white;
}

.wa-btn:focus,
.wa-btn:active{
    text-decoration:none;
    color:white;
}


/* -------------------------------------
   Button Download & Edit Styles
------------------------------------- */
.btn-download,
.btn-cetak,
.btn-download2,
.btn-edit {
    padding: 3px 8px;       
    font-size: 12px;        
    text-decoration: none !important;  
    border-radius: 4px;
    display: inline-block;
}

.btn-download:hover,
.btn-cetak:hover,
.btn-download2:hover,
.btn-edit:hover,
.btn-download:focus,
.btn-cetak:focus,
.btn-download2:focus,
.btn-edit:focus {
    text-decoration: none !important; 
}

.btn-download {
    background-color: #007BFF;
    color: white;
}

.btn-download:hover {
    background-color: #0056b3;
    color: white;              
}

.btn-edit {
    background-color: #f39c12;
    color: white;
}

.btn-edit:hover {
    background-color: #d68910;
    color: white;
}

.btn-cetak {
    background-color: #e74c3c;
    color: white;
}

.btn-cetak:hover {
    background-color: #c0392b;
    color: white;
}

.btn-download2 {
    background-color: #28a745; 
    color: white;
}

.btn-download2:hover {
    background-color: #218838; 
    color: white;              
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* jarak icon & teks */
}

.judul-box {
    background: linear-gradient(to right, #007bff, #00c6ff);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
}

.judul-box2 {
    background: linear-gradient(to right, #ff4d4d, #cc0000);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
}

.judul-box3 {
    background: linear-gradient(to right, #33cc66, #009933);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
}

/* -------------------------------------
   Layout Containers
------------------------------------- */
#wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}

#header {
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #2afe00;
    border-bottom: 4px solid #ddd;
    overflow: hidden;
}

/* -------------------------------------
   Tables
------------------------------------- */
.table-main,
.table-common,
.table-list,
.table-user,
.table-list2,
.table-list3,
.table-print {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-bottom: 20px;
}

.table-list {
    border: none !important;
}

.table-list7 {
    width: 100%;
    max-width: 800px; /* atau ukuran lain sesuai kebutuhan */
    border-collapse: collapse;
}

.table-list8 {
    width: 100%;
    max-width: 900px; /* atau ukuran lain sesuai kebutuhan */
    border-collapse: collapse;
}

    
.table-list td,
.table-list th {
    border: none !important;
    padding: 8px;
    font-size: 13px;
    color: #333;
}

.table-list th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table-main td,
.table-common td,
.table-list td,
.table-user td,
.table-list2 td,
.table-list3 td,
.table-print td {
    padding: 8px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.table-common th,
.table-list th,
.table-user th,
.table-list2 th,
.table-list3 th {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    background-color: #f2f2f2;
    color: #333;
    border-top: 2px solid #ff9900;
    border-bottom: 2px solid #ccc;
}

/* -------------------------------------
   Sidebar & Navigation
------------------------------------- */
.sidebar-wrapper {
    padding: 10px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-wrapper.hide {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    transform: translateX(-100%);
    background-color: #fff;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 15px;
}

.sidebar-logo img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Sidebar menu */
.table-main ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-main li {
    margin-bottom: 5px;
}

.table-main li a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    background: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.table-main li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1d72b8;
    transform: translateX(5px);
}

/* Submenu */
.table-main ul ul li a {
    margin-left: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
    color: #d63384;
    background-color: #fef3c7;
    border-radius: 8px;
}

.table-main ul ul li a:hover {
    background-color: #00BFFF;
    color: #000;
}

/* Submenu yang aktif (terbuka) */
.dropdown.active > .submenu {
    display: block;  /* Menampilkan submenu */
}

/* Menyembunyikan submenu secara default */
.submenu {
    display: none;
}

/* -------------------------------------
   Buttons
------------------------------------- */
.toggle-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    background-color: red;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-sidebar-btn:hover {
    background-color: red;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.toggle-sidebar-btn i {
    font-size: 20px;
}

/* -------------------------------------
   Miscellaneous
------------------------------------- */
.center-full {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

input.angkaC { text-align: center; }
input.angkaL { text-align: left; }
input.angkaR { text-align: right; }

.table-main input:focus,
.table-main textarea:focus,
.table-main select:focus {
    background-color: #e0e0e0;
}

.footer {
    width: 100%;
    padding: 20px;
    margin: 20px 0;
    background-color: #F7FE00;
    border-radius: 30px;
    text-align: center;
    color: #333;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mssgBox,
.imgBox {
    float: left;
    margin-right: 10px;
    font-size: 13px;
}

/* -------------------------------------
   Responsive
------------------------------------- */
@media screen and (max-width: 768px) {
    .table-main li a,
    .table-main ul ul li a {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    body {
        font-size: 13px;
        padding: 5px;
    }

    #header {
        height: auto;
        padding: 20px;
    }

    .sidebar-wrapper {
        align-items: center;
    }
}
