/* ===== SEMBUNYIKAN SCROLLBAR ===== */
html {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE & Edge lama */
}

html::-webkit-scrollbar {
    display: none;              /* Chrome, Edge, Opera, Safari */
}

/* ===== RESET GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}


html {
    touch-action: manipulation;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
    padding-bottom: 70px;
    margin: 0;          /* tambahan */
    padding-left: 0;    /* tambahan */
    padding-right: 0;   /* tambahan */
}



/* ===== KONTEN UTAMA ===== */
#content {
    padding: 0;         /* hilangkan padding samping */
    margin: 0;
    width: 100%;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ddd;
    z-index: 9999;
}

.bottom-nav a {
    flex: 1;
    text-decoration: none;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: .2s;
}

.bottom-nav a span {
    font-size: 12px;
    margin-top: 3px;
}

.bottom-nav a.active {
    color: #0d6efd;
    font-weight: bold;
}

.bottom-nav a:hover {
    color: #0d6efd;
}

/* ==========================
   Login
========================== */
/* ===== HALAMAN LOGIN ===== */
.login-page {
    min-height: 100vh;      /* cukup 100vh, tidak perlu 120vh */
    height: 100%;           /* tambahkan untuk mengisi penuh */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #4f8cff);
    padding: 0;             /* pastikan 0 */
    margin: 0;              /* tambahkan margin 0 */
    box-sizing: border-box; /* pastikan padding tidak menambah lebar */
}


.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    padding: 35px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0d6efd;
    font-size: 28px;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-card input {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

.login-card input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.login-card button {
    height: 50px;
    border: none;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-card button:hover {
    background: #0b5ed7;
}

.login-card button:active {
    transform: scale(.98);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.login-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    .login-card h2 {
        font-size: 24px;
    }
}

.login-logo{
    width:90px;
    height:90px;
    display:block;
    margin:0 auto 20px;
}

.login-text{
    text-align:center;
    color:#777;
    margin-bottom:30px;
}

.google-btn{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    height:50px;

    background:#fff;

    border:1px solid #ddd;

    border-radius:10px;

    text-decoration:none;

    color:#333;

    font-weight:bold;

    transition:.2s;

}

.google-btn img{

    width:22px;

}

.google-btn:hover{

    background:#f5f5f5;

    border-color:#0d6efd;

}
/* ==========================
   Container (untuk halaman lain)
========================== */
.container {
    padding: 0;          /* hilangkan padding samping */
    margin: 0;
    width: 100%;
}

/* ==========================
   Profil
========================== */

.profile-avatar img.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.profile-card {
    max-width: 420px;
    margin: 20px auto;   /* beri margin atas/bawah, tetapi kiri/kanan auto */
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.profile-avatar {
    font-size: 90px;
    color: #0d6efd;
    margin-bottom: 10px;
}

.profile-card h2 {
    margin: 0;
    font-size: 24px;
}

.profile-role {
    color: #777;
    margin-top: 5px;
    margin-bottom: 25px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.info-item i {
    font-size: 24px;
    color: #0d6efd;
}

.info-item small {
    display: block;
    color: #888;
}

.info-item strong {
    display: block;
    color: #222;
}

.btn-logout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    width: 100%;
    height: 48px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: .2s;
}

.btn-logout:hover {
    background: #bb2d3b;
}

/* ==========================
   Halaman Sekitar (User List)
========================== */
.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
    padding: 0 15px;   /* tambahkan sedikit padding agar judul tidak terlalu pinggir */
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;        /* hilangkan padding samping */
    margin: 0;
}

.user-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: .2s;
    margin: 0;         /* hilangkan margin samping */
}

.user-card:hover {
    transform: translateY(-2px);
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #eef5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0d6efd;
}

.user-info {
    flex: 1;
    margin-left: 15px;
}

.user-info h4 {
    margin: 0;
    font-size: 17px;
}

.user-info small {
    color: #888;
}

.distance {
    text-align: right;
    color: #0d6efd;
    font-weight: 600;
    font-size: 14px;
}

.distance i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

/* ==========================
   Halaman Pesan (Chat List)
========================== */
.chat-list {
    display: flex;
    flex-direction: column;
    padding: 0;        /* hilangkan padding samping */
    margin: 0;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 14px 15px; /* beri padding kiri/kanan sedikit untuk estetika */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: .2s;
}

.chat-item:hover {
    background: #f8f9fa;
}

.chat-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #eef5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 34px;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    margin-left: 15px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

.chat-header span {
    font-size: 12px;
    color: #888;
}

.chat-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================
   HALAMAN HOME (feed)
   ===== TANPA BATAS PINGGIR =====
========================== */
.home-header {
    margin-bottom: 20px;
    padding: 0 15px;   /* opsional: beri sedikit ruang untuk judul */
}

.home-header h2 {
    margin: 0;
}

.home-header small {
    color: #777;
}

/* Kotak tulis postingan */
.post-box {
    background: #fff;
    border-radius: 0;          /* hilangkan radius agar rata pinggir */
    padding: 15px;
    margin: 0 0 20px 0;        /* margin samping = 0 */
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #666;
}

.post-user i {
    font-size: 45px;
    color: #0d6efd;
}

.post-box textarea {
    width: 100%;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    cursor: pointer;
    font-weight: 600;
}

.post-box button {
    float: right;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* Feed (daftar postingan) */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;        /* hilangkan padding samping */
    margin: 0;
}

/* Setiap postingan */
.post {
    background: #fff;
    border-radius: 0;          /* rata pinggir */
    padding: 15px;
    margin: 0;                /* margin samping = 0 */
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.avatar {
    font-size: 45px;
    color: #0d6efd;
}

.post-header h4 {
    margin: 0;
}

.post-header small {
    color: #888;
}

.post p {
    margin: 15px 0;
}

.post-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.post-footer {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding-top: 10px;
    color: #666;
}

.post-footer span {
    cursor: pointer;
}

.post-footer span:hover {
    color: #0d6efd;
}




.register-card{

    max-width:500px;

    margin:30px auto;

}

.register-card form{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.register-card input,
.register-card select{

    width:100%;

    height:50px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    font-size:15px;

    outline:none;

    box-sizing:border-box;

}

.register-card input:focus,
.register-card select:focus{

    border-color:#0d6efd;

    box-shadow:0 0 0 3px rgba(13,110,253,.15);

}

.register-card button{

    height:50px;

    border:none;

    border-radius:10px;

    background:#0d6efd;

    color:#fff;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    transition:.2s;

}

.register-card button:hover{

    background:#0b5ed7;

}

@media(max-width:600px){

    .register-card{

        margin:15px;

    }

}

/* ==========================
   Upload Foto Profil
========================== */

.profile-upload{
    text-align:center;
    margin-bottom:20px;
}

.profile-preview{
    width:120px;
    height:120px;
    margin:0 auto 15px;
    border-radius:50%;
    overflow:hidden;
    border:4px solid #0d6efd;
    background:#eef5ff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:70px;
    color:#0d6efd;
}

.profile-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.change-photo{
    display:inline-block;
    padding:8px 18px;
    background:#0d6efd;
    color:#fff;
    border-radius:25px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

.change-photo:hover{
    background:#0b5ed7;
}

/* ==========================
   Form Group
========================== */

.form-group{
    margin-bottom:18px;
}

.form-label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
    color:#444;
}

/* ==========================
   Radio Button Modern
========================== */

.radio-group{
    display:flex;
    gap:12px;
}

.radio-card{
    flex:1;
    cursor:pointer;
}

.radio-card input{
    display:none;
}

.radio-card span{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    height:50px;

    border:2px solid #ddd;
    border-radius:12px;

    background:#fff;

    transition:.2s;
}

.radio-card i{
    font-size:18px;
}

.radio-card input:checked + span{
    border-color:#0d6efd;
    background:#0d6efd;
    color:#fff;
    font-weight:bold;
}

.radio-card:hover span{
    border-color:#0d6efd;
}