/* =====================================================
   HTZ Evidencija RMU Kakanj
   Autor: OpenAI
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --green:#009640;
    --green-dark:#007c36;

    --gold:#d4af37;

    --sidebar:#1f252d;

    --sidebar-hover:#2a313b;

    --background:#eef2f6;

    --white:#ffffff;

    --border:#dde4ea;

    --text:#222;

    --text-light:#777;

}

html{

    height:100%;

}

body{

    min-height:100%;

    font-family:"Segoe UI",Tahoma,Arial,sans-serif;

    background:var(--background);

    color:var(--text);

    font-size:15px;

}

/* ==========================
        LINKOVI
========================== */

a{

    text-decoration:none;

    color:inherit;

}

/* ==========================
        LOGIN
========================== */

.login-page{

    width:100%;

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#111,#009640);

}

.login-box{

    width:420px;

    background:#fff;

    border-radius:15px;

    padding:45px;

    box-shadow:0 20px 40px rgba(0,0,0,.25);

}

.login-logo{

    text-align:center;

    margin-bottom:35px;

}

.login-logo h1{

    font-size:34px;

    color:var(--green);

    margin-bottom:8px;

}

.login-logo p{

    color:#666;

}

.form-group{

    margin-bottom:20px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.form-control{

    width:100%;

    padding:13px 15px;

    border:1px solid #d5d5d5;

    border-radius:8px;

    font-size:15px;

    transition:.3s;

}

.form-control:focus{

    border-color:var(--green);

    outline:none;

}

.btn{

    width:100%;

    background:var(--green);

    color:white;

    border:none;

    padding:14px;

    border-radius:8px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;

}

.btn:hover{

    background:var(--green-dark);

}

.error{

    background:#ffe2e2;

    color:#b10000;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;

}

/* ==========================
        GLAVNI LAYOUT
========================== */

.wrapper{

    display:flex;

    width:100%;

    min-height:100vh;

}

/* lijevi meni */

.sidebar{

    width:240px;

    background:var(--sidebar);

    color:#fff;

    flex-shrink:0;

}

/* glavni dio */

.main{

    flex:1;

    display:flex;

    flex-direction:column;

    min-width:0;

}

/* sadržaj */

.content{

    flex:1;

    padding:30px;

}
/* =====================================================
   DIO 2 - SIDEBAR + TOPBAR + DASHBOARD
===================================================== */

/* SIDEBAR */

.logo{
    height:90px;
    background:#009640;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
}

.logo h2{
    font-size:24px;
    margin-bottom:5px;
}

.logo small{
    font-size:13px;
}

.sidebar ul{
    list-style:none;
    margin-top:10px;
}

.sidebar ul li{
    border-bottom:1px solid rgba(255,255,255,.05);
}

.sidebar ul li a{

    display:flex;
    align-items:center;

    padding:14px 20px;

    color:#d7dde5;

    transition:.25s;

    font-size:15px;

}

.sidebar ul li a:hover{

    background:#2b323c;

    color:#fff;

    border-left:4px solid #009640;

    padding-left:16px;

}

.sidebar ul li a.active{

    background:#009640;

    color:#fff;

}

/* MAIN */

.main{

    flex:1;

    display:flex;

    flex-direction:column;

    min-width:0;

}

/* TOPBAR */

.topbar{

    height:70px;

    background:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 30px;

    border-bottom:1px solid #ddd;

}

.topbar-left h1{

    font-size:24px;

    color:#222;

}

.topbar-left span{

    font-size:13px;

    color:#777;

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:20px;

}

.user-box{

    text-align:right;

}

.user-box strong{

    display:block;

}

.user-box small{

    color:#777;

}

.logout{

    background:#009640;

    color:#fff;

    padding:10px 18px;

    border-radius:6px;

}

.logout:hover{

    background:#007832;

}

/* CONTENT */

.content{

    padding:25px;

    width:100%;

}

/* PAGE TITLE */

.page-title{

    font-size:30px;

    margin-bottom:25px;

    font-weight:700;

}

/* DASHBOARD */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-bottom:30px;

}

.info-card{

    background:#fff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

    border-left:5px solid #009640;

}

.info-card h3{

    color:#777;

    font-size:15px;

    margin-bottom:12px;

}

.info-card h2{

    color:#009640;

    font-size:36px;

}
/* =====================================================
   DIO 3 - TABELE, FORME, DUGMAD
=====================================================*/

/* KARTICE */

.card{

    background:#fff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

    margin-bottom:25px;

}

/* TOOLBAR */

.toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

    gap:15px;

    flex-wrap:wrap;

}

/* DUGMAD */

.btn,
.btn-mali{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 18px;

    border:none;

    border-radius:8px;

    background:#009640;

    color:#fff;

    cursor:pointer;

    transition:.25s;

    font-size:14px;

    font-weight:600;

}

.btn:hover,
.btn-mali:hover{

    background:#007832;

}

.btn-izmjena{

    display:inline-block;

    padding:8px 14px;

    background:#d4af37;

    color:#222;

    border-radius:6px;

    font-size:13px;

    margin-right:5px;

    transition:.25s;

}

.btn-izmjena:hover{

    opacity:.9;

}

.btn-brisanje{

    display:inline-block;

    padding:8px 14px;

    background:#c0392b;

    color:#fff;

    border-radius:6px;

    font-size:13px;

    transition:.25s;

}

.btn-brisanje:hover{

    background:#a93226;

}

/* INPUTI */

input[type=text],
input[type=password],
input[type=date],
input[type=number],
select,
textarea{

    width:100%;

    padding:11px 14px;

    border:1px solid #d9dfe5;

    border-radius:8px;

    background:#fff;

    font-size:14px;

    transition:.25s;

}

input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:#009640;

    box-shadow:0 0 0 3px rgba(0,150,64,.10);

}

/* LABEL */

label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

/* TABELE */

.tabela{

    width:100%;

    border-collapse:collapse;

    background:#fff;

}

.tabela thead{

    background:#009640;

}

.tabela th{

    color:#fff;

    padding:14px;

    text-align:left;

    font-size:14px;

}

.tabela td{

    padding:13px 14px;

    border-bottom:1px solid #ececec;

}

.tabela tbody tr{

    transition:.20s;

}

.tabela tbody tr:hover{

    background:#f8fbf9;

}

/* STATUS */

.badge{

    display:inline-block;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

}

.badge-green{

    background:#dff5e7;

    color:#0b7b37;

}

.badge-red{

    background:#ffe0e0;

    color:#b10000;

}

/* PRETRAGA */

.search-box{

    width:280px;

}
/* =====================================================
   DIO 4 - MODAL, RESPONSIVE, SITNICE
=====================================================*/

/* MODAL */

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.modal-content{

    width:600px;

    max-width:95%;

    background:#fff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.modal-header h2{

    font-size:22px;

}

.close{

    font-size:28px;

    cursor:pointer;

    color:#888;

}

.close:hover{

    color:#000;

}

/* GRID FORMI */

.row{

    display:flex;

    gap:20px;

    margin-bottom:18px;

}

.col{

    flex:1;

}

/* TABELE */

.table-responsive{

    width:100%;

    overflow-x:auto;

}

/* PORUKE */

.alert-success{

    background:#dff5e7;

    color:#0a7d37;

    padding:12px 15px;

    border-radius:8px;

    margin-bottom:20px;

}

.alert-error{

    background:#ffe2e2;

    color:#b10000;

    padding:12px 15px;

    border-radius:8px;

    margin-bottom:20px;

}

/* PAGINACIJA */

.pagination{

    display:flex;

    justify-content:flex-end;

    gap:8px;

    margin-top:20px;

}

.pagination a{

    padding:8px 14px;

    background:#fff;

    border:1px solid #ddd;

    border-radius:6px;

}

.pagination a:hover{

    background:#009640;

    color:#fff;

}

/* SCROLLBAR */

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-thumb{

    background:#b5bcc3;

    border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

    background:#8f979f;

}

/* RESPONSIVE */

@media(max-width:1100px){

.sidebar{

    width:220px;

}

}

@media(max-width:900px){

.wrapper{

    flex-direction:column;

}

.sidebar{

    width:100%;

}

.topbar{

    padding:15px;

    height:auto;

    flex-direction:column;

    align-items:flex-start;

    gap:12px;

}

.cards{

    grid-template-columns:1fr;

}

.row{

    flex-direction:column;

}

.content{

    padding:15px;

}

}

@media(max-width:600px){

.logo{

    height:70px;

}

.logo h2{

    font-size:20px;

}

.page-title{

    font-size:24px;

}

.btn,
.btn-mali{

    width:100%;

}

}
.grid-kartice{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.kartica{
    display:block;
    text-decoration:none;
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:25px;
    transition:.2s;
    color:#222;
}

.kartica:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.kartica h3{
    margin:15px 0;
}

.kartica .ikona{
    font-size:42px;
}