main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.app-logo {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

/* BOJE SMJENA */
.morning {
    background: #e8f8f5;
    border-left: 4px solid #1abc9c;
}

.afternoon {
    background: #ebf5fb;
    border-left: 4px solid #3498db;
}

.free {
    background: #f4f6f7;
    border-left: 4px solid #7f8c8d;
}

.other {
    background: #fff3cd;
    border-left: 4px solid #f1c40f;
}

/* Sticky prva kolona */
.name-col {
    font-weight: bold;
    background: #f7f7f7;
    width: 200px;
    position: sticky;
    left: 0;
    z-index: 5;
}

/* Responsive scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/*banner*/
.custom-file-input {
    position: relative;
    color: transparent; /* sakriva "No file chosen" */
}

.custom-file-input::-webkit-file-upload-button {
    visibility: hidden; /* sakriva default gumb */
}

.custom-file-input::before {
    content: "Odaberite datoteku…"; /* HR tekst */
    color: #555;
    display: inline-block;
    background: #eaeaea;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

.custom-file-input:hover::before {
    background: #ddd;
}

.custom-file-input:active::before {
    background: #ccc;
}
 body {
            overflow-x: hidden;
            background: #f8f9fa;
        }

        /* Sidebar */
        #sidebar {
            width: 250px;
            background: #ffffff;
            border-right: 1px solid #e5e5e5;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            padding: 20px;
            z-index: 2000;
            transition: transform 0.3s ease;
        }

        #sidebar.hidden {
            transform: translateX(-250px);
        }

        /* Content */
        #content {
            margin-left: 250px;
            transition: margin-left 0.3s ease;
            padding: 20px;
        }

        #content.full {
            margin-left: 0;
        }

        /* Mobile */
        @media (max-width: 768px) {
            #sidebar {
                transform: translateX(-250px);
                pointer-events: none;
            }

            #sidebar.show {
                transform: translateX(0);
                pointer-events: auto;
            }

            #content {
                margin-left: 0;
            }
        }

        /* Overlay */
        #overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: none;
            z-index: 1500;
        }

        #overlay.show {
            display: block;
        }

        .sidebar-link {
            padding: 12px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #333;
            font-weight: 500;
            text-decoration: none;
        }

        .sidebar-link:hover {
            color: #0d6efd;
        }

        /* Avatar u top navbaru — Bootstrap-proof */
        nav.navbar .dropdown-toggle img.nav-avatar {
            width: 36px !important;
            height: 36px !important;
            border-radius: 50% !important;
            object-fit: contain !important;
            background: #fff;
            border: 2px solid #ddd;
            display: inline-block !important;
            flex-shrink: 0 !important;
        }
         /* MAIN LAYOUT */
    .profile-layout {
        display: flex;
        gap: 40px;
        margin-top: 20px;
    }

    /* LEFT SIDE */
    .profile-left {
        width: 55%;
    }

    .profile-image-wrapper {
        width: 180px;
        height: 180px;
        border-radius: 12px;
        overflow: hidden;
        border: 2px solid #ddd;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .no-image-box {
        width: 180px;
        height: 180px;
        border: 2px dashed #bbb;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #777;
    }

    /* RIGHT SIDE */
    .profile-right {
        width: 22%;
        background: #fff;
        padding: 25px 30px;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    }

    .upload-title {
        margin-bottom: 15px;
    }

    /* PREVIEW BOX */
    .preview-wrapper {
        width: 100%;
        height: 220px;
        border-radius: 12px;
        border: 2px dashed #bbb;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #f7f7f7;
        margin-bottom: 15px;
    }

    #preview-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #preview-placeholder {
        color: #999;
        font-size: 14px;
    }

    /* FILE INPUT */
    .custom-file-input {
        padding: 12px;
        border: 2px dashed #bbb;
        border-radius: 10px;
        width: 100%;
        cursor: pointer;
        background: #fafafa;
        transition: 0.2s ease;
    }

    .custom-file-input:hover {
        border-color: #888;
        background: #f0f0f0;
    }

    /* BUTTONS */
    .button-row {
        margin-top: 15px;
    }
    .upload-flex {
    display: flex;
    gap: 25px;
    margin-top: 10px;
    justify-content: center;
    align-items: flex-start;
}

/* LEFT SIDE */
.preview-box {
    width: 220px;
}

.preview-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 2px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
}

#preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#preview-placeholder {
    color: #999;
    font-size: 14px;
}

/* RIGHT SIDE */
.upload-box {
    width: 340px;
    background: #fff;
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.upload-info {
    color: #666;
    margin-bottom: 18px;
    line-height: 1.4;
}

.custom-file-input {
    padding: 12px;
    border: 2px dashed #bbb;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    background: #fafafa;
    transition: 0.2s ease;
}

.custom-file-input:hover {
    border-color: #888;
    background: #f0f0f0;
}

.button-row {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: #777;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}
/* Desktop layout */
.profile-layout {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.profile-left {
    width: 55%;
}

.profile-right {
    width: 22%;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* Mobile layout */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        gap: 20px;
    }

    .profile-left,
    .profile-right {
        width: 100%;
    }

    .preview-wrapper {
        height: 180px;
    }

    .btn-lg {
        width: 100%;
    }
}

.profile-layout {
        display: flex;
        gap: 40px;
        margin-top: 20px;
    }

    .profile-left {
        flex: 1;
    }

    .profile-right {
        flex: 1;
        max-width: 400px;
    }

    .preview-wrapper {
        width: 100%;
        height: 250px;
        border: 1px solid #ccc;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 15px;
        background: #fafafa;
    }

    .preview-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

    .button-row {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

