/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================
   BODY
========================= */

body{

    font-family:'Segoe UI',sans-serif;

    background:#0f172a;

    color:white;

    min-height:100vh;

    overflow-x:hidden;
}

/* =========================
   LOGIN
========================= */

.login-container{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;
}

.login-box{

    width:420px;

    background:
    rgba(255,255,255,0.05);

    backdrop-filter:blur(15px);

    border:
    1px solid rgba(255,255,255,0.1);

    padding:40px;

    border-radius:25px;

    text-align:center;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.4);

    animation:fadeIn 0.7s ease;
}

.login-icon{

    width:100px;

    height:100px;

    margin:auto;

    margin-bottom:20px;

    border-radius:25px;

    background:
    linear-gradient(135deg,#0ea5e9,#38bdf8);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:45px;

    color:white;
}

.login-box h1{

    font-size:35px;

    margin-bottom:10px;
}

.login-box p{

    color:#cbd5e1;

    margin-bottom:30px;
}

/* INPUT */

.input-group{

    position:relative;

    margin-bottom:20px;
}

.input-group i{

    position:absolute;

    left:18px;

    top:18px;

    color:#94a3b8;
}

.input-group input{

    width:100%;

    padding:16px 16px 16px 50px;

    border:none;

    border-radius:15px;

    background:
    rgba(255,255,255,0.08);

    color:white;

    font-size:16px;

    outline:none;
}

.input-group input:focus{

    border:1px solid #38bdf8;
}

/* BUTTON */

button{

    width:100%;

    padding:16px;

    border:none;

    border-radius:15px;

    background:
    linear-gradient(135deg,#0ea5e9,#38bdf8);

    color:white;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s;
}

button:hover{

    transform:translateY(-3px);
}

/* =========================
   DASHBOARD
========================= */

.dashboard-layout{

    display:flex;

    min-height:100vh;
}


/* LOGO */

.logo-box{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:40px;
}

.logo-box img{

    width:60px;

    height:60px;

    border-radius:15px;

    object-fit:cover;

    background:white;
}

.logo-box h2{

    font-size:32px;
}

.logo-box p{

    color:#94a3b8;

    font-size:14px;
}

/* MENU */

.sidebar ul{

    list-style:none;
}

.sidebar ul li{

    margin-bottom:15px;
}

.sidebar ul li a{

    display:flex;

    align-items:center;

    gap:10px;

    padding:18px;

    border-radius:15px;

    background:
    rgba(255,255,255,0.05);

    color:white;

    text-decoration:none;

    transition:0.3s;
}

.sidebar ul li a:hover{

    background:
    rgba(56,189,248,0.2);
}

.sidebar i{

    font-size:18px;
}

/* LOGOUT */

.logout-btn{

    display:block;

    margin-top:30px;

    padding:18px;

    background:#ef4444;

    border-radius:15px;

    text-align:center;

    text-decoration:none;

    color:white;

    font-weight:bold;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content{

    width:100%;

    max-width:1150px;

    margin:30px auto;

    padding:20px;
}

/* TOPBAR */

.topbar{

    margin-bottom:30px;
}

.topbar h1{

    font-size:42px;

    margin-bottom:10px;
}

.topbar p{

    color:#94a3b8;
}

/* =========================
   CARDS
========================= */
.info-card{

    padding:25px;

    border-radius:20px;

    color:white;

    min-height:140px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    box-shadow:
    0 10px 30px rgba(0,0,0,.25);

    transition:.3s;
}

.info-card:hover{

    transform:translateY(-5px);
}

.info-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    margin-bottom:25px;
}


.admin-card:hover{

    transform:translateY(-5px);
}

.admin-icon{

    width:80px;

    height:80px;

    border-radius:20px;

    background:
    rgba(255,255,255,0.15);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:35px;
}

.admin-card h3{

    margin-bottom:10px;
}

.admin-card h2{

    margin-bottom:10px;
}

/* CARD COLORS */

.online{

    background:
    linear-gradient(135deg,#166534,#22c55e);
}

.offline{

    background:
    linear-gradient(135deg,#7f1d1d,#ef4444);
}

.blue{

    background:
    linear-gradient(135deg,#2563eb,#38bdf8);
}

.purple{

    background:
    linear-gradient(135deg,#7c3aed,#8b5cf6);
}

.orange{

    background:
    linear-gradient(135deg,#c2410c,#f59e0b);
}
/* =========================
   GRID DASHBOARD ADMIN
========================= */

.admin-cards{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:20px;

    margin-top:20px;
}

.admin-card{

    padding:25px;

    border-radius:25px;

    display:flex;

    align-items:center;

    gap:20px;

    transition:0.3s;

    min-height:160px;
}

.admin-card:hover{

    transform:translateY(-5px);
}

.admin-icon{

    width:80px;

    height:80px;

    border-radius:20px;

    background:
    rgba(255,255,255,0.15);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:35px;
}

.admin-card h3{

    margin-bottom:10px;
}

.admin-card h2{

    margin-bottom:10px;

    font-size:18px;
}

/* RESPONSIVE HP */

@media(max-width:900px){

    .admin-cards{

        grid-template-columns:1fr;
    }

}

/* =========================
   CHART
========================= */
.chart-box{

    background:#1e293b;

    padding:25px;

    border-radius:20px;

    width:100%;

    max-width:1000px;

    margin:auto;

    box-shadow:
    0 10px 30px rgba(0,0,0,.3);
}
.status-box{

    background:#1e293b;

    padding:18px;

    border-radius:15px;

    margin-bottom:20px;
}
.chart-box canvas{

    width:100% !important;

    height:420px !important;
}
.judul-grafik{

    margin-bottom:30px;

    text-align:center;
}

.judul-grafik h1{

    font-size:42px;

    margin-bottom:10px;
}

.judul-grafik p{

    color:#94a3b8;

    font-size:17px;

    max-width:700px;

    margin:auto;

    line-height:1.8;
}
/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    .dashboard-layout{

        flex-direction:column;
    }

    .sidebar{

        position:relative;

        width:100%;

        height:auto;
    }

    .main-content{

        margin-left:0;

        width:100%;
    }

    .admin-cards{

        grid-template-columns:1fr;
    }
}


/* =========================
   ANIMATION
========================= */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(30px);
    }

    to{

        opacity:1;

        transform:translateY(0);
    }
}
.card-link{

    text-decoration:none;

    color:white;
}
/* TABLE */

.data-table{

    width:100%;

    border-collapse:collapse;
}

.data-table th{

    background:#1e293b;

    padding:15px;

    text-align:left;
}

.data-table td{

    padding:15px;

    border-bottom:
    1px solid rgba(255,255,255,0.08);
}

.data-table tr:hover{

    background:
    rgba(255,255,255,0.03);
}

.popup-export{

display:none;

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,.7);

justify-content:center;
align-items:center;

z-index:9999;
}

.popup-box{

background:white;

width:450px;

padding:25px;

border-radius:15px;

position:relative;
}

.popup-box h2{

margin-bottom:15px;
}

.popup-box form{

margin-top:15px;
margin-bottom:15px;
}

.popup-box input{

width:100%;

padding:10px;

margin-top:5px;
margin-bottom:10px;
}

.popup-box button{

width:100%;

padding:12px;

background:#16a34a;

color:white;

border:none;

border-radius:8px;

cursor:pointer;
}

.export-btn{

display:block;

padding:12px;

background:#2563eb;

color:white;

text-decoration:none;

text-align:center;

border-radius:8px;
}

.close-btn{

position:absolute;

right:10px;
top:10px;

border:none;

background:red;

color:white;

padding:5px 10px;

cursor:pointer;
}
/* =========================
   HALAMAN GRAFIK
========================= */

.grafik-page{

    max-width:1000px;

    margin:30px auto;

    padding:20px;
}

.grafik-page > h1{

    text-align:center;

    margin-bottom:15px;

    font-size:42px;
}

.btn-kembali{

    display:inline-flex;

    align-items:center;

    gap:10px;

    margin-bottom:20px;
}

.judul-grafik{

    text-align:center;

    margin-bottom:30px;
}

.judul-grafik p{

    max-width:700px;

    margin:auto;

    color:#94a3b8;

    line-height:1.8;
}
/* =========================
   TOMBOL KEMBALI DASHBOARD
========================= */
.back-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

    background:#2563eb;

    color:white;

    padding:12px 20px;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.back-btn:hover{

    background:#1d4ed8;
}
/* =========================
   CONTAINER GLOBAL
========================= */

.container{

    width:100%;

    max-width:1000px;

    margin:0 auto;

    padding:20px;
}
/* =====================
   GRAFIK MODERN
===================== */

.container-grafik{

    max-width:1100px;

    margin:40px auto;

    padding:20px;
}

.judul-grafik{

    background:#1e293b;

    padding:30px;

    border-radius:20px;

    margin-bottom:25px;

    text-align:center;
}

.judul-grafik h1{

    font-size:40px;

    margin-bottom:10px;
}

.judul-grafik p{

    color:#94a3b8;
}

.info-card{

    min-height:120px;
}

.chart-box{

    margin-top:20px;

    background:#1e293b;

    border-radius:20px;

    padding:25px;
}

.chart-box canvas{

    height:350px !important;
}

.keterangan{

    margin-top:20px;

    background:#0f172a;

    border:1px solid #334155;

    padding:20px;

    border-radius:15px;
}

.btn-kembali{

    margin-bottom:20px;
}
/* ===================================
   HALAMAN GRAFIK MONITORING NELAYAN
=================================== */

.grafik-page{

    max-width:1100px;

    margin:30px auto;

    padding:20px;
}

.judul-grafik{

    text-align:center;

    margin-bottom:30px;
}

.judul-grafik h1{

    font-size:42px;

    margin-bottom:10px;
}

.judul-grafik p{

    color:#94a3b8;

    max-width:700px;

    margin:auto;

    line-height:1.8;
}

.btn-kembali{

    display:inline-block;

    padding:12px 20px;

    background:#2563eb;

    color:white;

    text-decoration:none;

    border-radius:12px;

    margin-bottom:25px;
}

.btn-kembali:hover{

    background:#1d4ed8;
}

.info-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    margin-bottom:25px;
}

.info-card{

    padding:25px;

    border-radius:20px;

    color:white;

    min-height:130px;
}

.status-box{

    background:#1e293b;

    padding:20px;

    border-radius:20px;

    margin-bottom:25px;

    font-size:18px;
}

.chart-box{

    background:#1e293b;

    padding:25px;

    border-radius:20px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.3);
}

.chart-box canvas{

    width:100% !important;

    height:350px !important;
}

.keterangan{

    margin-top:20px;

    padding:20px;

    background:#0f172a;

    border-radius:15px;

    line-height:2;
}
/* =================================
   PERBAIKAN DASHBOARD ADMIN
================================= */

.sidebar{

    width:280px;

    min-width:280px;

    background:#111827;

    padding:25px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    min-height:100vh;

    box-shadow:
    5px 0 20px rgba(0,0,0,.3);
}

.main-content{

    flex:1;

    padding:30px;
}

.logo-box img{

    width:80px;

    height:80px;

    border-radius:20px;

    object-fit:cover;

    background:white;
}

.logo-box h2{

    font-size:24px;
}

.logo-box p{

    color:#94a3b8;

    font-size:14px;
}

.active-menu a{

    background:
    linear-gradient(
    135deg,
    #2563eb,
    #38bdf8
    );

    color:white !important;
}

/* CARD DASHBOARD */

.admin-cards{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:20px;

    margin-top:20px;
}

.admin-card{

    min-height:170px;

    padding:25px;

    border-radius:20px;

    display:flex;

    align-items:center;

    gap:20px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.25);

    transition:.3s;
}

.admin-card:hover{

    transform:translateY(-5px);
}

.admin-icon{

    width:75px;

    height:75px;

    border-radius:18px;

    background:
    rgba(255,255,255,.15);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:30px;
}

.admin-card h3{

    margin-bottom:8px;

    font-size:18px;
}

.admin-card h2{

    margin-bottom:8px;

    font-size:22px;
}

/* TOPBAR */

.topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

    gap:20px;
}

.topbar h1{

    font-size:40px;
}

.topbar p{

    color:#94a3b8;
}

/* RESPONSIVE */

@media(max-width:900px){

    .dashboard-layout{

        flex-direction:column;
    }

    .sidebar{

        width:100%;

        min-width:100%;
    }

    .admin-cards{

        grid-template-columns:1fr;
    }

    .topbar{

        flex-direction:column;

        align-items:flex-start;
    }

}

.error-message{
    background:#ffebee;
    color:#d32f2f;
    padding:10px;
    margin:10px 0;
    border-radius:5px;
    text-align:center;
    font-weight:bold;
}

.btn-kembali{
    display:block;
    width:100%;
    text-align:center;
    margin-top:10px;
    padding:12px;
    background:#6c757d;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
}

.btn-kembali:hover{
    background:#545b62;
}
/* ==========================
   LOGIN MODERN
========================== */

.subtitle{
    color:#cbd5e1;
    font-size:14px;
    line-height:1.6;
    margin-bottom:20px;
}

.error-message{
    width:100%;
    background:#fee2e2;
    color:#b91c1c;
    border-left:4px solid #ef4444;
    padding:12px;
    margin-bottom:15px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    text-align:center;
}

.btn-login{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#0ea5e9,#38bdf8);
    color:white;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.btn-login:hover{
    transform:translateY(-2px);
}

.btn-user{
    display:block;
    width:100%;
    padding:14px;
    margin-top:12px;
    border-radius:12px;
    background:#1d4ed8;
    color:white !important;
    text-decoration:none !important;
    text-align:center;
    font-weight:600;
    transition:0.3s;
}

.btn-user:hover{
    background:#2563eb;
}

.footer-login{
    margin-top:20px;
    padding-top:15px;
    border-top:1px solid rgba(255,255,255,.08);
    color:#94a3b8;
    text-align:center;
    font-size:12px;
}
.btn-user{
    display:block !important;
    width:100% !important;
    background:#2563eb !important;
    color:#fff !important;
    text-decoration:none !important;
    text-align:center !important;
    padding:14px !important;
    margin-top:10px !important;
    border-radius:12px !important;
    font-weight:600 !important;
    box-sizing:border-box !important;
}

.btn-user:hover{
    background:#1d4ed8 !important;
}