*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', sans-serif;
    background:#f4f7fb;
    color:#222;
}

/* HEADER */

.header{
    width:100%;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.header-container{
    max-width:1400px;
    margin:auto;
    padding:14px 30px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* LOGO */

.logo-box{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
}

.logo-box img{
    width:72px;
    height:72px;
    object-fit:contain;
    transition:0.3s;
}

.logo-box:hover img{
    transform:scale(1.06);
}

.logo-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.logo-text .title{
    font-size:28px;
    font-weight:700;
    color:#0a2f78;
}

.logo-text .subtitle{
    font-size:18px;
    font-weight:600;
    color:#d71920;
    letter-spacing:2px;
}

/* NAVIGATION */

.nav-menu{
    display:flex;
    align-items:center;
    gap:12px;
}

.nav-menu a{
    text-decoration:none;
    color:#0a2f78;
    font-weight:500;
    padding:12px 18px;
    border-radius:14px;
    transition:0.3s;
    position:relative;
}

.nav-menu a:hover{
    background:#edf3ff;
    color:#d71920;
    transform:translateY(-2px);
}

.login-btn{
    background:linear-gradient(135deg,#0a2f78,#174bb3);
    color:white !important;
    box-shadow:0 6px 18px rgba(10,47,120,0.25);
}

.login-btn:hover{
    background:linear-gradient(135deg,#d71920,#ff3b44) !important;
    color:white !important;
}

/* MOBILE MENU */

.menu-toggle{
    display:none;
    font-size:34px;
    cursor:pointer;
    color:#0a2f78;
}

/* CONTENT */

.page-content{
    padding:40px 20px;
}

/* RESPONSIVE */

@media(max-width:1000px){

    .menu-toggle{
        display:block;
    }

    .nav-menu{
        position:absolute;
        top:100%;
        right:20px;

        width:280px;
        background:white;

        flex-direction:column;
        align-items:stretch;

        padding:18px;

        border-radius:20px;

        box-shadow:0 10px 35px rgba(0,0,0,0.15);

        display:none;
    }

    .nav-menu.active{
        display:flex;
        animation:fadeMenu 0.3s ease;
    }

    .nav-menu a{
        width:100%;
    }

    .logo-text .title{
        font-size:20px;
    }

    .logo-text .subtitle{
        font-size:14px;
    }

    .logo-box img{
        width:58px;
        height:58px;
    }

    .header-container{
        padding:14px 18px;
    }
}

@keyframes fadeMenu{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* PAGE */

.page-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
    padding:40px 20px;
}

/* FORM CARD */

.form-card{
    width:100%;
    max-width:1100px;

    background:white;

    border-radius:30px;

    padding:40px;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.08);

    animation:fadeUp 0.5s ease;
}

/* HEADER */

.form-header{
    margin-bottom:35px;
}

.form-header h2{
    font-size:38px;
    color:#0a2f78;
    margin-bottom:10px;
    font-weight:700;
}

.form-header p{
    color:#666;
    font-size:16px;
}

/* GRID */

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

/* INPUT GROUP */

.input-group{
    display:flex;
    flex-direction:column;
}

.full-width{
    grid-column:1 / -1;
}

.input-group label{
    margin-bottom:10px;
    font-weight:600;
    color:#0a2f78;
    font-size:15px;
}

/* INPUTS */

.input-group input,
.input-group select,
.input-group textarea{
    width:100%;

    padding:16px 18px;

    border:none;

    background:#f4f7fb;

    border-radius:18px;

    font-size:15px;

    transition:0.3s;

    outline:none;
}

.input-group textarea{
    resize:vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus{
    background:white;

    box-shadow:
    0 0 0 4px rgba(10,47,120,0.08);

    transform:translateY(-2px);
}

/* FILE INPUT */

input[type="file"]{
    padding:14px;
    cursor:pointer;
}

/* BUTTON */

.save-btn{
    margin-top:35px;

    border:none;

    background:linear-gradient(135deg,#0a2f78,#174bb3);

    color:white;

    padding:18px 30px;

    border-radius:18px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;

    box-shadow:
    0 10px 25px rgba(10,47,120,0.25);
}

.save-btn:hover{
    transform:translateY(-3px);

    background:linear-gradient(135deg,#d71920,#ff3b44);

    box-shadow:
    0 14px 30px rgba(215,25,32,0.25);
}

/* ANIMATION */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(25px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:768px){

    .form-card{
        padding:25px;
        border-radius:24px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .form-header h2{
        font-size:28px;
    }

    .save-btn{
        width:100%;
    }
}
/* TABLE SECTION */

.table-wrapper{
    width:100%;
    padding:20px;
    display:flex;
    justify-content:center;
}

.table-card{
    width:100%;
    max-width:1400px;

    background:white;

    border-radius:30px;

    padding:35px;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.08);

    animation:fadeUp 0.5s ease;
}

/* TABLE HEADER */

.table-header{
    margin-bottom:25px;
}

.table-header h2{
    font-size:34px;
    color:#0a2f78;
    margin-bottom:8px;
}

.table-header p{
    color:#666;
}

/* RESPONSIVE TABLE */

.table-responsive{
    overflow-x:auto;
}

/* TABLE */

.modern-table{
    width:100%;
    border-collapse:collapse;
    min-width:900px;
}

/* HEADER */

.modern-table thead{
    background:linear-gradient(135deg,#0a2f78,#174bb3);
}

.modern-table thead th{
    color:white;
    padding:18px;
    text-align:left;
    font-size:15px;
    font-weight:600;
}

/* BODY */

.modern-table tbody tr{
    border-bottom:1px solid #edf1f7;
    transition:0.3s;
}

.modern-table tbody tr:hover{
    background:#f7faff;
}

.modern-table tbody td{
    padding:18px;
    color:#333;
    font-size:15px;
}

/* EDIT BUTTON */

.edit-btn{
    display:inline-block;

    padding:10px 18px;

    background:linear-gradient(135deg,#d71920,#ff3b44);

    color:white;

    border-radius:12px;

    text-decoration:none;

    font-weight:600;

    transition:0.3s;

    box-shadow:
    0 8px 18px rgba(215,25,32,0.25);
}

.edit-btn:hover{
    transform:translateY(-2px);

    box-shadow:
    0 12px 22px rgba(215,25,32,0.35);
}

/* MOBILE */

@media(max-width:768px){

    .table-card{
        padding:20px;
        border-radius:24px;
    }

    .table-header h2{
        font-size:26px;
    }

    .modern-table thead th,
    .modern-table tbody td{
        padding:14px;
        font-size:14px;
    }
}

/* FLEX HEADER */

.table-header-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

/* ADD BUTTON */

.add-volunteer-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:15px 24px;

    background:linear-gradient(135deg,#0a2f78,#174bb3);

    color:white;

    text-decoration:none;

    border-radius:16px;

    font-weight:600;

    transition:0.3s;

    box-shadow:
    0 10px 22px rgba(10,47,120,0.25);
}

.add-volunteer-btn:hover{
    transform:translateY(-3px);

    background:linear-gradient(135deg,#d71920,#ff3b44);

    box-shadow:
    0 14px 28px rgba(215,25,32,0.25);
}

/* PAGINATION */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;

    margin-top:35px;
}

/* PAGE BUTTON */

.page-btn{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    background:#f4f7fb;

    color:#0a2f78;

    border-radius:14px;

    font-weight:600;

    transition:0.3s;
}

.page-btn:hover{
    background:linear-gradient(135deg,#0a2f78,#174bb3);

    color:white;

    transform:translateY(-2px);

    box-shadow:
    0 10px 20px rgba(10,47,120,0.20);
}

/* MOBILE TABLE */

@media(max-width:768px){

    .table-header-flex{
        flex-direction:column;
        align-items:flex-start;
    }

    .add-volunteer-btn{
        width:100%;
    }

    .modern-table{
        min-width:700px;
    }

    .pagination{
        gap:8px;
    }

    .page-btn{
        width:42px;
        height:42px;
        font-size:14px;
    }
}

/* EVENTS GRID */

.events-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

/* EVENT CARD */

.event-card{
    background:white;

    border-radius:28px;

    overflow:hidden;

    transition:0.4s;

    box-shadow:
    0 10px 35px rgba(0,0,0,0.08);

    position:relative;
}

.event-card:hover{
    transform:translateY(-8px);

    box-shadow:
    0 18px 45px rgba(0,0,0,0.14);
}

/* IMAGE */

.event-image{
    width:100%;
    height:240px;
    overflow:hidden;
}

.event-image img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:0.5s;
}

.event-card:hover .event-image img{
    transform:scale(1.08);
}

/* CONTENT */

.event-content{
    padding:24px;
}

/* TOP */

.event-top{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:15px;
}

.event-id{
    background:#edf3ff;
    color:#0a2f78;

    padding:8px 14px;

    border-radius:12px;

    font-size:13px;
    font-weight:600;
}

.event-hours{
    background:linear-gradient(135deg,#d71920,#ff3b44);

    color:white;

    padding:8px 14px;

    border-radius:12px;

    font-size:13px;
    font-weight:600;
}

/* TITLE */

.event-content h3{
    font-size:24px;
    color:#0a2f78;
    margin-bottom:14px;
    line-height:1.3;
}

/* DESCRIPTION */

.event-description{
    color:#666;
    line-height:1.7;
    margin-bottom:22px;
}

/* INFO */

.event-info{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.info-item{
    background:#f4f7fb;

    padding:14px 16px;

    border-radius:14px;

    color:#333;

    font-size:14px;
}

/* MOBILE */

@media(max-width:768px){

    .events-grid{
        grid-template-columns:1fr;
    }

    .event-image{
        height:220px;
    }

    .event-content{
        padding:20px;
    }

    .event-content h3{
        font-size:21px;
    }
}

/* EVIDENCIJA PRISUSTVA */

/* ATTENDANCE */

.attendance-wrapper{
    width:100%;
    max-width:1400px;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:35px;

    padding:20px;
}

/* CARD */

.attendance-card{
    background:white;

    border-radius:30px;

    padding:35px;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.08);

    animation:fadeUp 0.5s ease;
}

/* HEADER */

.attendance-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    margin-bottom:30px;

    flex-wrap:wrap;
}

.attendance-header h2{
    font-size:34px;
    color:#0a2f78;
    margin-bottom:8px;
}

.attendance-header p{
    color:#666;
    font-size:15px;
}

/* COUNT */

.attendance-count{
    min-width:120px;
    height:120px;

    border-radius:50%;

    background:linear-gradient(135deg,#0a2f78,#174bb3);

    color:white;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    font-size:34px;
    font-weight:700;

    box-shadow:
    0 12px 30px rgba(10,47,120,0.25);
}

.attendance-count span{
    font-size:13px;
    font-weight:500;
    margin-top:4px;
}

/* FORM BOX */

.attendance-form-box{
    background:#f4f7fb;

    border-radius:24px;

    padding:25px;

    margin-bottom:30px;
}

.attendance-form-box h3{
    color:#0a2f78;
    margin-bottom:18px;
}

/* FORM */

.attendance-form{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.attendance-form select{
    flex:1;

    min-width:250px;

    padding:16px 18px;

    border:none;

    background:white;

    border-radius:16px;

    font-size:15px;

    outline:none;
}

.attendance-form button{
    border:none;

    padding:16px 28px;

    border-radius:16px;

    background:linear-gradient(135deg,#0a2f78,#174bb3);

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.attendance-form button:hover{
    transform:translateY(-2px);

    background:linear-gradient(135deg,#d71920,#ff3b44);
}

/* TABLE */

.attendance-table-wrapper{
    overflow-x:auto;
}

/* SWITCH */

.switch{
    position:relative;
    display:inline-block;
    width:62px;
    height:34px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
}

.slider{
    position:absolute;
    cursor:pointer;

    top:0;
    left:0;
    right:0;
    bottom:0;

    background:#d7dce5;

    transition:0.4s;

    border-radius:40px;
}

.slider:before{
    position:absolute;
    content:"";

    height:26px;
    width:26px;

    left:4px;
    bottom:4px;

    background:white;

    transition:0.4s;

    border-radius:50%;
}

.switch input:checked + .slider{
    background:linear-gradient(135deg,#0a2f78,#174bb3);
}

.switch input:checked + .slider:before{
    transform:translateX(28px);
}

/* MOBILE */

@media(max-width:768px){
    /*POCETAK IZMENE*/
    @media(max-width:768px){

    .modern-table td{
        padding:14px 10px;
        vertical-align:middle;
    }

    .switch{
        width:72px;
        height:40px;
    }

    .slider:before{
        height:32px;
        width:32px;
        left:4px;
        bottom:4px;
    }

    .switch input:checked + .slider:before{
        transform:translateX(32px);
    }
}
    /*KRAJ IZMENE*/
    .attendance-card{
        padding:24px;
        border-radius:24px;
    }

    .attendance-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .attendance-header h2{
        font-size:26px;
    }

    .attendance-count{
        width:100px;
        height:100px;

        font-size:28px;
    }

    .attendance-form{
        flex-direction:column;
    }

    .attendance-form button{
        width:100%;
    }
}


/*KRAJ EVIDENCIJA PRISUSTVA*/

/*IZMENI VOLONTERA*/

/* EDIT CARD */

.edit-card{
    max-width:850px;
}

/* ICON */

.edit-icon{
    width:90px;
    height:90px;

    border-radius:24px;

    background:linear-gradient(135deg,#0a2f78,#174bb3);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:42px;

    margin-bottom:20px;

    color:white;

    box-shadow:
    0 12px 28px rgba(10,47,120,0.22);
}

/* ACTIONS */

.edit-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:20px;

    margin-top:35px;

    flex-wrap:wrap;
}

/* CANCEL BUTTON */

.cancel-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:18px 28px;

    border-radius:18px;

    text-decoration:none;

    background:#eef2f9;

    color:#0a2f78;

    font-weight:600;

    transition:0.3s;
}

.cancel-btn:hover{
    background:#dfe7f5;

    transform:translateY(-2px);
}

/* MOBILE */

@media(max-width:768px){

    .edit-icon{
        width:75px;
        height:75px;

        font-size:34px;

        border-radius:20px;
    }

    .edit-actions{
        flex-direction:column;
    }

    .cancel-btn,
    .save-btn{
        width:100%;
    }
}

/*KRAJ IZMENI VOLONTERA*/

/*POCETAK LOGIN*/

/* LOGIN PAGE */

.login-body{
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:
    linear-gradient(135deg,#0a2f78 0%,#174bb3 100%);

    position:relative;
}

/* BACKGROUND */

.login-background{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.circle{
    position:absolute;

    border-radius:50%;

    background:
    rgba(255,255,255,0.08);

    backdrop-filter:blur(8px);
}

.circle-1{
    width:420px;
    height:420px;

    top:-120px;
    left:-120px;
}

.circle-2{
    width:350px;
    height:350px;

    bottom:-120px;
    right:-120px;
}

/* WRAPPER */

.login-wrapper{
    width:100%;
    max-width:480px;

    padding:20px;

    position:relative;
    z-index:2;
}

/* CARD */

.login-card{
    background:
    rgba(255,255,255,0.95);

    backdrop-filter:blur(15px);

    border-radius:32px;

    padding:45px;

    box-shadow:
    0 20px 60px rgba(0,0,0,0.18);

    animation:fadeUp 0.6s ease;
}

/* LOGO */

.login-logo{
    display:flex;
    justify-content:center;

    margin-bottom:25px;
}

.login-logo img{
    width:110px;
    height:110px;

    object-fit:contain;

    animation:floatLogo 4s ease-in-out infinite;
}

/* HEADER */

.login-header{
    text-align:center;

    margin-bottom:35px;
}

.login-header h1{
    font-size:40px;

    color:#0a2f78;

    margin-bottom:12px;

    font-weight:700;
}

.login-header p{
    color:#666;

    line-height:1.6;
}

/* FORM */

.login-form{
    display:flex;
    flex-direction:column;
    gap:24px;
}

/* INPUT GROUP */

.login-input-group{
    display:flex;
    flex-direction:column;
}

.login-input-group label{
    margin-bottom:10px;

    color:#0a2f78;

    font-weight:600;
}

/* INPUT */

.login-input-group input{
    padding:18px 20px;

    border:none;

    background:#f4f7fb;

    border-radius:18px;

    font-size:15px;

    outline:none;

    transition:0.3s;
}

.login-input-group input:focus{
    background:white;

    transform:translateY(-2px);

    box-shadow:
    0 0 0 4px rgba(10,47,120,0.08);
}

/* BUTTON */

.login-btn-submit{
    border:none;

    padding:18px;

    border-radius:18px;

    background:
    linear-gradient(135deg,#0a2f78,#174bb3);

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;

    margin-top:10px;

    box-shadow:
    0 12px 28px rgba(10,47,120,0.25);
}

.login-btn-submit:hover{
    transform:translateY(-3px);

    background:
    linear-gradient(135deg,#d71920,#ff3b44);

    box-shadow:
    0 16px 32px rgba(215,25,32,0.25);
}

/* ANIMATION */

@keyframes floatLogo{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0px);
    }
}

/* MOBILE */

@media(max-width:600px){

    .login-card{
        padding:30px 24px;

        border-radius:24px;
    }

    .login-header h1{
        font-size:30px;
    }

    .login-logo img{
        width:85px;
        height:85px;
    }

    .login-btn-submit{
        width:100%;
    }
}

/*KRAJ LOGIN*/

/*POCETAK LEPSEG KARD VOLONTERI*/

@media(max-width:768px){

    .table-responsive{
        overflow:visible;
    }

    .modern-table{
        min-width:100%;
        border-collapse:separate;
        border-spacing:0 18px;
    }

    /* SAKRIJ HEADER */

    .modern-table thead{
        display:none;
    }

    /* CARD */

    .modern-table tbody tr{
        display:block;

        background:white;

        border-radius:24px;

        padding:18px;

        box-shadow:
        0 8px 25px rgba(0,0,0,0.08);

        margin-bottom:18px;

        border:none;
    }

    .modern-table tbody tr:hover{
        background:white;
        transform:translateY(-2px);
    }

    /* REDOVI */

    .modern-table tbody td{
        display:flex;

        justify-content:space-between;
        align-items:center;

        gap:15px;

        padding:14px 0;

        border-bottom:1px solid #eef2f7;

        text-align:right;
    }

    .modern-table tbody td:last-child{
        border-bottom:none;
        padding-bottom:0;
    }

    /* LABEL */

    .modern-table tbody td::before{
        content:attr(data-label);

        font-weight:700;

        color:#0a2f78;

        text-align:left;
    }

    /* BUTTON */

    .edit-btn{
        width:100%;
        text-align:center;
    }

    .add-volunteer-btn{
        width:100%;
    }

    .pagination{
        gap:8px;
    }

    .page-btn{
        width:42px;
        height:42px;
        font-size:14px;
    }
}

.status{
    padding:6px 12px;
    border-radius:12px;
    color:white;
    font-size:13px;
    font-weight:600;
}

.status.zelena{
    background:#16a34a;
}

.status.crvena{
    background:#dc2626;
}
/*KRAJ LEPSEG KARD VOLONTERI*/

