/* =====================================
   e-Kariah Surau As-Salam
   Main CSS
===================================== */


*{
    box-sizing:border-box;
    font-family:"Segoe UI", Arial, sans-serif;
}



body{

    margin:0;

    padding:20px;

    background:#f4f7f2;

    color:#333;

}





/* ==========================
   CONTAINER
========================== */


.container{

    max-width:1100px;

    margin:auto;

}





/* ==========================
   HEADER
========================== */


.header{

    background:
    linear-gradient(
        135deg,
        #075e3c,
        #15945d
    );

    color:white;

    padding:30px;

    border-radius:18px;

    text-align:center;

    box-shadow:
    0 5px 15px rgba(0,0,0,.15);

}


/* ==========================
   LOGO SURAU
========================== */


.logo-surau{

    width:110px;

    height:110px;

    object-fit:contain;

    display:block;

    margin:0 auto 15px;

}



/* Logo pada header biasa */

.header .logo-surau{

    width:90px;

    height:90px;

    margin:0 auto 10px;

}



/* ==========================
   HEADER TITLE
========================== */


.header h1{

    margin:0;

    font-size:30px;

}



.header h2{

    margin-top:10px;

    font-weight:normal;

}





/* ==========================
   LOGIN PAGE
========================== */


.login-page{

    max-width:500px;

    margin:40px auto;

}



/* Header khas login */

.login-header{

    padding:35px 25px;

}



.login-header .logo-surau{

    width:130px;

    height:130px;

    margin-bottom:15px;

}



.login-header h1{

    font-size:32px;

    margin:5px 0;

}



.login-header h2{

    margin:5px 0;

}



.login-subtitle{

    margin-top:12px;

    margin-bottom:0;

    font-size:15px;

    opacity:.9;

}



/* ==========================
   LOGIN BOX
========================== */


.login-box{

    background:white;

    padding:25px;

    margin-top:20px;

    border-radius:16px;

    text-align:center;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}



.login-box p{

    color:#666;

    line-height:1.6;

    margin-top:0;

    margin-bottom:20px;

}



/* ==========================
   GOOGLE LOGIN BUTTON
========================== */


.google-login{

    width:100%;

    padding:15px;

    margin:0;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    background:#4285f4;

    color:white;

}



.google-login:hover{

    background:#3367d6;

}





/* ==========================
   DASHBOARD CARD
========================== */


.cards{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fit,
        minmax(220px,1fr)
    );

    gap:20px;

    margin-top:25px;

}



.card{

    background:white;

    padding:25px;

    border-radius:16px;

    text-align:center;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}



.card h3{

    margin:0;

    color:#666;

}



.card h1{

    margin:15px 0 0;

    font-size:42px;

    color:#075e3c;

}






/* ==========================
   MENU
========================== */


.menu{

    margin-top:25px;

    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}






/* ==========================
   BUTTON
========================== */


button{

    width:100%;

    padding:15px;

    margin:8px 0;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    background:#075e3c;

    color:white;

}



button:hover{

    background:#06482f;

}




.logout{

    background:#b3261e;

}



.logout:hover{

    background:#8b1d18;

}






/* ==========================
   TABLE
========================== */


.table-container{

    margin-top:25px;

    background:white;

    padding:20px;

    border-radius:16px;

    overflow-x:auto;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}




table{

    width:100%;

    border-collapse:collapse;

    min-width:700px;

}




thead th{

    background:#075e3c;

    color:white;

    padding:14px;

    text-align:left;

}



tbody td{

    padding:12px;

    border-bottom:
    1px solid #ddd;

}



tbody tr:hover{

    background:#f1f8f4;

}








/* ==========================
   ACTION BUTTON
========================== */


.btn-lulus{

    width:auto;

    padding:8px 15px;

    background:#198754;

    margin:3px;

}



.btn-lulus:hover{

    background:#146c43;

}



.btn-tolak{

    width:auto;

    padding:8px 15px;

    background:#b3261e;

    margin:3px;

}



.btn-tolak:hover{

    background:#8b1d18;

}








/* ==========================
   FORM PROFIL
========================== */


form{

    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}



label{

    font-weight:bold;

}



input,
select{

    width:100%;

    padding:13px;

    margin-top:6px;

    margin-bottom:15px;

    border:

    1px solid #ccc;

    border-radius:10px;

    font-size:16px;

}



input:focus,
select:focus{

    outline:none;

    border-color:#075e3c;

}







/* ==========================
   SEARCH
========================== */


#carian{

    width:100%;

    padding:14px;

    margin-bottom:20px;

    border-radius:12px;

    border:1px solid #ccc;

    font-size:16px;

}



#carian:focus{

    outline:none;

    border-color:#075e3c;

}







/* ==========================
   BADGE STATUS
========================== */


.status{

    padding:6px 12px;

    border-radius:20px;

    font-size:14px;

    font-weight:bold;

}



.status-aktif{

    background:#d1f2df;

    color:#075e3c;

}



.status-menunggu{

    background:#fff3cd;

    color:#856404;

}



.status-ditolak{

    background:#f8d7da;

    color:#842029;

}







/* ==========================
   MOBILE
========================== */


@media(max-width:600px){


    body{

        padding:10px;

    }



    .header{

        padding:20px;

    }



    .header h1{

        font-size:22px;

    }



    .header h2{

        font-size:18px;

    }



    .header .logo-surau{

        width:70px;

        height:70px;

    }



    .login-page{

        margin:15px auto;

    }



    .login-header{

        padding:25px 15px;

    }



    .login-header .logo-surau{

        width:100px;

        height:100px;

    }



    .login-header h1{

        font-size:26px;

    }



    .login-header h2{

        font-size:20px;

    }



    .card h1{

        font-size:34px;

    }



    .menu{

        padding:15px;

    }



    button{

        font-size:15px;

    }



    .table-container{

        padding:10px;

    }



}