/* style.css */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f4f6f8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-bottom:100px !important;
}

.container {
    background: white;
    padding: 75px 25px 100px 25px;
    max-width: 1400px;
    width: 100%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    text-align:center;
    margin:50px auto !important;
}

/* Tombol utama */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px; /* Jarak antar tombol */
    margin-top: 20px;
}

.btn-kidi {
    background-color: #fbbf24;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-kidi:hover {
    background-color: #f59e0b;
}

/* Data member */
.member-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:50px;
    margin: 50px auto 30px;
    flex-wrap: wrap;
    border: dotted 1px #888;
    max-width: 70%;
    padding: 55px 0;
}

.title-member{
 margin-top:50px;   
}

.logo-container img {
    width: 150px;
    height: 150px;
    margin-right:30px;
    object-fit: contain;
}

.info-container {
    text-align: left;
    font-size: 1em;
    line-height: 0.65;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 20px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 50%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
}

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

button,
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #FCBC14;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover,
input[type="submit"]:hover {
    background-color: #FCBC14;
}

.result {
    margin-top: 25px;
    background: #eef5ff;
    padding: 15px;
    border-left: 4px solid #007BFF;
    border-radius: 6px;
}

.result img {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 6px;
}

.error {
    border-left-color: red;
    background: #ffe9e9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    white-space: nowrap;
    font-size: 14px;
}

.table td {
    white-space: nowrap;
    font-size: 14px;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #f1f1f1;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #000;
}

/* Style dasar tombol */
.button-link,
.button-back {
    display: inline-block;
    background-color: #FCBC14;
    color: white;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
    margin: 0 auto 15px;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    border: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Ukuran tombol "Cek" (lebar 50%) */
.button-link {
    width: 50%;
}

/* Ukuran tombol "Kembali" (lebih kecil, misal 30%) */
.button-back {
    width: 15%;
}

/* Hover effect */
.button-link:hover,
.button-back:hover {
    background-color: #e0aa10;
    cursor: pointer;
}

/* Hilangkan warna visited pada link */
.button-back:visited,
.button-link:visited {
    color: white;
}

.alamat {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    td {
        position: relative;
        padding-left: 50%;
    }

    td::before {
        position: absolute;
        left: 10px;
        top: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    td:nth-child(1)::before { content: "ID"; }
    td:nth-child(2)::before { content: "Nama Usaha"; }
    td:nth-child(3)::before { content: "Nama Pemilik"; }
    td:nth-child(4)::before { content: "Tanggal Bergabung"; }
    td:nth-child(5)::before { content: "Logo"; }
    td:nth-child(6)::before { content: "Aksi"; }
    
    /* Ukuran tombol "Kembali" (lebih kecil, misal 30%) */
    .button-back {
    width: 25%;
    }
    
    .member-container {
        flex-direction: column;
        align-items: center;

    display: flex;
    justify-content: center;
    gap:50px;
    margin: 50px auto 30px;
    flex-wrap: wrap;
    border: dotted 1px #888;
    max-width: 90%;
    padding: 55px 10px;


    }

    .info-container {
        text-align: left;
        font-size: 1em;
        line-height: 1.5;
    }

    .info-container p {
        word-break: break-word;
        margin:10px;
    }
    
    .alamat {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: break-word;
    }

}