/* ==========================================
   HALAMAN DAFTAR KAPAL
========================================== */

.kapal-card{
    border-radius:18px;
    overflow:hidden;
    transition:.3s;
    border:none;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    background:#fff;
}

.kapal-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.kapal-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.kapal-card .card-body{
    padding:18px;
}

.kapal-card h5{
    font-weight:700;
    margin-bottom:10px;
}

.kapal-card .badge{
    margin-right:5px;
    margin-bottom:5px;
    border-radius:30px;
}

.kapal-card .btn{
    border-radius:30px;
}

@media (max-width:768px){

    .kapal-card img{
        height:170px;
    }

}

/* ===========================
DETAIL KAPAL
=========================== */

.detail-kapal img{
    border-radius:18px;
    }
    .detail-kapal h2{
    font-weight:700;
    }
    .detail-kapal p{
    line-height:1.8;
    }
    .detail-kapal .badge{
    margin-right:6px;
    margin-bottom:6px;
    font-size:14px;
    padding:8px 14px;
    border-radius:20px;
    }
    .gallery-upload{
        border:2px dashed #0d6efd;    
        padding:40px; 
        border-radius:15px;
        text-align:center;
        background:#f8fbff;
        transition:.3s;        
        }

        .gallery-upload:hover{
            background:#eef6ff;
        }


/* =========================================
   GALERI KAPAL ADMIN
========================================= */

.gallery-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 12px;
    font-size: 14px;
    color: #6b7280;
}
.kapal-name-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kapal-image {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    object-fit: contain !important;
    flex-shrink: 0;
    display: block;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 3px;
}

.kapal-no-image {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #7692FF;
}

.kapal-name-wrapper strong {
    color: #091540;
}

.kapal-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.kapal-actions a,
.kapal-actions button {
    width: 62px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}
.kapal-gallery-button {
    background: #ABD2FA !important;
    color: #091540 !important;
    border: 1px solid #ABD2FA !important;
}

.kapal-gallery-button:hover {
    background: #7692FF !important;
    border-color: #7692FF !important;
    color: #fff !important;
}

.kapal-edit-button {
    background: #7692FF !important;
    color: #fff !important;
    border: 1px solid #7692FF !important;
}

.kapal-edit-button:hover {
    background: #1B2CC1 !important;
    border-color: #1B2CC1 !important;
    color: #fff !important;
}
.kapal-delete-form {
    margin: 0;
    padding: 0;
}

.kapal-delete-button {
    background: #fff !important;
    color: #dc2626 !important;
    border: 1px solid #f1b5b5 !important;
}

.kapal-delete-button:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

/* ==========================================
   BANNER DAFTAR KAPAL
========================================== */

.kapal-page-banner {
    position: relative;

    min-height: 320px;

    display: flex;

    align-items: center;

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


.kapal-banner-content {
    max-width: 720px;

    padding: 65px 0;

    color: #fff;
}


.kapal-banner-label {
    display: inline-block;

    margin-bottom: 12px;

    padding: 7px 15px;

    border-radius: 50px;

    background: rgba(255, 255, 255, .15);

    border: 1px solid rgba(255, 255, 255, .28);

    color: #fff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    backdrop-filter: blur(5px);
}


.kapal-banner-content h1 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 40px;

    font-weight: 800;

    line-height: 1.2;
}


.kapal-banner-content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, .9);

    font-size: 15px;

    line-height: 1.7;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .kapal-page-banner {
        min-height: 260px;

        background-position: center;
    }

    .kapal-banner-content {
        padding: 50px 0;

        text-align: center;
    }

    .kapal-banner-content h1 {
        font-size: 28px;
    }

    .kapal-banner-content p {
        font-size: 13px;

        line-height: 1.6;
    }

    .kapal-banner-label {
        font-size: 10px;

        padding: 6px 12px;
    }

}