/* Top Navbar */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 80px); /* jika sidebar kanan 80px */
    right: 90px;
    height: 90px;
    background-color: rgba(128, 0, 0, 0.3);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 40px;
    padding-right: 20px;
    backdrop-filter: blur(8px);
}

.top-header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.top-header a:hover,
.top-header a:active {
    color: white;
    font-weight: bold;
}

.top-header a:hover::after,
.top-header a:active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 25%;
    height: 2px;
    width: 50%;
    background-color: white;
    border-radius: 1px;
}

.brand-logo-text {
    margin-top: -5px; /* atau -10px sesuai kebutuhan */
}

.logo-gky {
    width: 42px;
    height: auto;
    filter: drop-shadow(0 0 1px white)
    drop-shadow(0 0 1px white);
}

@font-face {
    font-family: 'EurostileBoldExtended';
    src: url('/assets/fonts/Rogbold-3llGM.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


.ygky-text {
    font-size: 40px !important;
    font-style: italic;
    font-family: 'Rogbold-3llGM';
    font-weight: bold;
    letter-spacing: 0px;
    margin-top: 0px;
}

.brand-identity {
    margin-top: 4px;
}

.yayasan-subtitle {
    font-size: 13px !important;
    color: white;
    position: relative;
    top: -10px;
    line-height: 1;
}


.top-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 20px;
    position: relative;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

/* Hapus margin terakhir */
.top-nav-links a:last-child {
    margin-right: 0;
}

/* Hover dan active: teks maroon */
.top-nav-links a:hover,
.top-nav-links a:focus,
.top-nav-links a.active,
.top-nav-links a:active {
    color: maroon;
    font-weight: 700;
}

/* Garis bawah: hover dan active */
.top-nav-links a:hover::after,
.top-nav-links a:focus::after,
.top-nav-links a.active::after,
.top-nav-links a:active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 24px;
    background-color: ivory;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Bahasa ID | EN */
.language-switcher-fixed {
    position: fixed;
    top: 30px;
    right: 10px;
    z-index: 9999;
    font-size: 0.95rem;
    font-weight: bold;
    color: white;
}

.language-switcher-fixed .lang-link {
    color: white;
    text-decoration: none;
    padding: 0 5px;
    border-left: 3px solid rgba(255,255,255,5.5);
}

.language-switcher-fixed .lang-link:first-child {
    border-left: none;
}


.language-switcher-fixed .lang-link:hover {
    text-decoration: underline;
    color: #ffeb3b; /* kuning terang pas hover */
}




/* General */
a, body, div, form, p, html, input, span {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

label {
    font-weight: bold;
    margin-bottom: 2px;
    display: block;
    text-align: left;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

img {
    padding: 0;
    border: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

body, html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: #a2a09b;
    background: -webkit-linear-gradient(315deg, hsla(236.6, 0%, 53.52%, 1) 0, hsla(236.6, 0%, 53.52%, 0) 70%),
        -webkit-linear-gradient(65deg, hsla(220.75, 34.93%, 26.52%, 1) 10%, hsla(220.75, 34.93%, 26.52%, 0) 80%),
        -webkit-linear-gradient(135deg, hsla(46.42, 36.62%, 83.92%, 1) 15%, hsla(46.42, 36.62%, 83.92%, 0) 80%),
        -webkit-linear-gradient(205deg, hsla(191.32, 50.68%, 56.45%, 1) 100%, hsla(191.32, 50.68%, 56.45%, 0) 70%);
    background: linear-gradient(135deg, hsla(236.6, 0%, 53.52%, 1) 0, hsla(236.6, 0%, 53.52%, 0) 70%),
        linear-gradient(25deg, hsla(220.75, 34.93%, 26.52%, 1) 10%, hsla(220.75, 34.93%, 26.52%, 0) 80%),
        linear-gradient(315deg, hsla(46.42, 36.62%, 83.92%, 1) 15%, hsla(46.42, 36.62%, 83.92%, 0) 80%),
        linear-gradient(245deg, hsla(191.32, 50.68%, 56.45%, 1) 100%, hsla(191.32, 50.68%, 56.45%, 0) 70%);
}

/* Jarak dengan Konten utama */
.padding-to-main {
    padding-bottom: 10px; /* Sesuaikan dengan tinggi navbar */
}


/* Body */
input, label {
    vertical-align: middle;
    white-space: normal;
    background: 0 0;
    line-height: 1.5;
}

label {
    position: relative;
    display: block;
}

p::first-letter {
    text-transform: uppercase;
}

.main {
    min-height: calc(100vh - 90px);
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    color:black;
}

.ie-fixMinHeight {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.ico {
    height: 16px;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 13px;
    margin-left: 14px;
}

.logo {
    max-width: 200px;
    display: block;
    margin: 0 auto 30px auto;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.logo * {
    fill: #fff;
    justify-content: center;
}

.lite .logo * {
    fill: #444;
}

h1 {
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
}

.wrap {
    margin: auto;
    padding: 40px;
    -webkit-transition: width .3s ease-in-out;
    transition: width .3s ease-in-out;
}

form {
    width: 100%;
    margin-bottom: 20px;
}

.fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.info {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 90px;
    font-weight: bold;
    text-transform: uppercase;  /* Mengubah teks hanya di elemen ini */
    margin-left: 20px;          /* Margin kiri */
    margin-right: 20px;         /* Margin kanan */
    padding: 0 20px;            /* Padding kiri & kanan untuk ruang lebih */
    word-wrap: break-word;      /* Membuat teks pecah jika melebihi lebar */
}

.powered {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

input {
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus {
    outline: 0;
}

input[type=password], input[type=text] {
    width: 100%;
    border: 1px solid;
    height: 44px;
    padding: 3px 10px 3px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, .8);
    -webkit-transition: -webkit-box-shadow .3s ease-in-out;
    transition: -webkit-box-shadow .3s ease-in-out;
    transition: box-shadow .3s ease-in-out;
    transition: box-shadow .3s ease-in-out, -webkit-box-shadow .3s ease-in-out;
}

input[type=password]:focus, input[type=text]:focus {
    -webkit-box-shadow: 0 0 5px 0 rgba(255, 255, 255, 1);
    box-shadow: 0 0 5px 0 rgba(255, 255, 255, 1);
}

.bt {
    opacity: .4;
}

input[type=submit] {
    background: #3e4d59;
    color: #fff;
    border: 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 44px;
    border-radius: 6px;
    -webkit-transition: background .3s ease-in-out;
    transition: background .3s ease-in-out;
}

input[type=submit]:focus, input[type=submit]:hover {
    background: #33404a;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

table td {
    color: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px 4px 10px 0;
}

table td:first-child {
    font-weight: 700;
}

.lite {
    background: #fff;
}

.lite input[type=password], .lite input[type=text] {
    border: 1px solid #c3c3c3;
}

.lite .info, .lite h1, .lite table td {
    color: #444;
}

.lite input[type=password]:focus, .lite input[type=text]:focus {
    -webkit-box-shadow: 0 0 5px 0 rgba(62, 77, 89, .2);
    box-shadow: 0 0 5px 0 rgba(62, 77, 89, .2);
}

.dark {
    background: #343434;
}

.dark input[type=submit] {
    background: #dc3a41;
}

.dark input[type=submit]:focus, .dark input[type=submit]:hover {
    background: #b92f35;
}

.dark input[type=password], .dark input[type=text] {
    background-color: #fff;
}

.dark a {
    color: #dc3a41;
}

.dark table td {
    border-bottom: 1px solid #505050;
}

.info.alert {
    color: #da3d41;
}


/* Main Content */
.container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    margin-top: 105px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.stats {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: #fff;
}

.stats p {
    margin: 6px 0;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #ff9800;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background-color: #e68900;
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #ccc;
}

form {
    text-align: left;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 90px 30px 30px 30px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 0 !important;
}

.content {
    text-align: center;
    margin-top:24px;
}


.content h2 {
    color: maroon;
    text-align: center;
    font-size: 24px !important;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.content h3 {
    color: #333;
    text-align: center;
    font-size: 16px !important;
    margin-bottom: 20px;
    text-transform: uppercase;
}



/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    color: #333;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #ccc;
}

th {
    background-color: maroon;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

.folder-list {
    list-style-type: none;  /* Menghilangkan bullet */
    padding-left: 0;        /* Menghapus padding kiri */
}

.folder-list li {
    margin: 10px 0;  /* Memberikan jarak antar item */
}

.maincontainer {
    margin-top: 0px;
    text-align:center;
}
.mainbutton {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    border-radius: 5px;
    margin: 10px;
}
.mainbutton:hover {
    background-color: #0056b3;
}

    /* Background maroon dengan transparansi 70% */
    form.bg-light {
        background-color: rgba(128, 0, 0, 0.7) !important; /* maroon + 70% opacity */
        color: white;
      }
  
      /* Text input, textarea default warna putih saat fokus dan input */
      form.bg-light input.form-control,
      form.bg-light textarea.form-control {
        background-color: transparent;
        color: white;
        border-color: white;
        transition: color 0.3s, background-color 0.3s;
      }
  
      form.bg-light input.form-control::placeholder,
      form.bg-light textarea.form-control::placeholder {
        color: #f0d6d6;
        opacity: 1;
      }
  
      form.bg-light input.form-control:focus,
      form.bg-light textarea.form-control:focus {
        background-color: transparent;
        color: white;
        border-color: #f8b195;
        box-shadow: 0 0 5px rgba(248, 177, 149, 0.7);
        outline: none;
      }
  
      form.bg-light input.form-control:not(:placeholder-shown),
      form.bg-light textarea.form-control:not(:placeholder-shown) {
        color: white;
      }
  
      /* Label tetap putih */
      form.bg-light label {
        color: white;
      }
  
      /* Button style agar kontras */
      form.bg-light button.btn-success {
        background-color: #800000; /* maroon */
        border-color: #800000;
      }
  
      form.bg-light button.btn-success:hover {
        background-color: #a52a2a; /* dark red */
        border-color: #a52a2a;
      }

          /* Container utama */
    .main {
        max-width: 600px;
        margin: 2rem auto;
        padding: 0 1rem;
      }
  
      /* Logo */
      .logo {
        display: block;
        margin: 0.5rem auto;
        max-width: 180px;
        height: auto;
      }
  
      /* Deskripsi */
      .description {
        text-align: center;
        color: white;
        font-weight: 600;
        margin-bottom: 0%;
      }
  
      /* Keterangan */
      .info-text {
        color: white;
        margin-top: 1rem;
        font-size: 0.9rem;
        text-align: center;
      }

      .barcode-info {
        background: linear-gradient(145deg, #8b0000, #a52a2a);
        color: #fffbea;
        font-size: 0.95rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        border-left: 6px solid #ffcccb;
      }

      .logo {
        max-width: 180px;
        height: auto;
        display: block;
        margin: 1rem auto;
      }

      /* Default desktop: inline */
        .mobile-break {
            display: inline;
            font-size: unset;
            font-weight: unset;
            line-height: unset;
        }

        .bg-maroon {
            background-color: maroon;
          }

          .text-maroon {
            color: maroon !important;
          }
          .text-purple {
            color: #6a1b9a !important;
          }
          .text-pink {
            color: #ffc0cb !important;
          }
          
      


/* Responsive for Mobile Devices (Android & iPhone) */
@media (max-width: 768px) {

    /* TOP HEADER */
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        background-color: rgba(0, 0, 0, 0.3);
        color: white;
        z-index: 1000;
        backdrop-filter: blur(8px);
      }
      

    /* Language Switcher - pojok kanan atas */
    .language-switcher-fixed {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 0.1rem;
        font-weight: normal;
    }

    .language-switcher-fixed .lang-link {
        color: white;
        text-decoration: none;
        padding: 0 5px;
        border-left: 2px solid rgba(255,255,255,5);
    }
    
    .language-switcher-fixed .lang-link:first-child {
        border-left: none;
    }
    

    /* Logo + YGKY + Subtitle (Kiri Atas) */
    .brand-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-left: 5px;
        margin-top: 0px;
        padding: 0;
      }
      
      .brand-block > .d-flex {
        align-items: center;
        gap: 6px;
      }
      
      .logo-gky {
        width: 18px !important;
        height: auto;
        display: block;
        filter: 
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.5))
          drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
    }
    
      
      .ygky-text {
        font-size: 1rem !important;
        font-style: italic;
        font-family: 'Rogbold-3llGM';
        font-weight: bold;
        letter-spacing: 1px;
        margin: 0;
        line-height: 1;
      }
      
      .yayasan-subtitle {
        font-size: 0.35rem !important;
        color: #f0f0f0;
        margin: 10px 0 0 0px; /* 24px sesuai lebar logo agar rata dengan YGKY */
        line-height: 1.1;
      }
      
    
    /* top nav */
    .top-nav-links::before {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.3); /* Bisa ganti ke ivory */
        margin-bottom: 6px;
      }

    .top-nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* ini penting untuk center horizontal */
        gap: 2px;
        margin-top: 0px;
        text-align: center;
    }
    
    .top-nav-links a {
        display: inline-block;
        padding: 6px 0px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        font-size: 0.75rem;
        color: white;
        text-decoration: none;
        transition: background-color 0.2s, color 0.2s;
    }
    

    .top-nav-links a:hover {
        background-color: rgba(255,255,255,0.25);
    }

    /* Padding untuk konten agar tidak tertutup header */
    .padding-to-main {
        height: 60px;
    }


    /* Penyesuaian container utama */
    .main-content {
        margin-left: 0 !important;
        padding: 90px 15px 20px;
    }

    .container {
        margin-top: 110px !important;
    }

    /* Judul halaman atau section */
    h1.juduldoa {
        font-size: 1.4rem !important;
        color: maroon;
        margin-bottom: -10px;
    }

    .description {
        font-size: 0.85rem;
        color: #ececeb;
    }

    .mobile-break {
        display: block;
        line-height: inherit;
    }

    .top-header * {
        box-sizing: border-box;
    }
    
}

/* Ukuran menengah (misal iPhone Plus, dll) */
@media (min-width: 576px) {
    .wrap {
        width: 410px;
    }

    * {
        font-size: 14px !important;
    }

    h1.juduldoa {
        font-size: 1.5rem;
    }
}

/* Untuk layar sangat kecil (semua hp kecil) */
@media only screen and (min-width: 1px) and (max-width: 575px) {
    .wrap {
        width: 100%;
    }
}
