html,
body {
    height: 100%;
	min-height: 100%;
    font-size: 14px;
	display:flex;
	flex-direction:column;
	background-color: #f0f3f5;
	color: #2c3e50 !important;
}

.wrap {
    flex: 1 0 auto;
    height: auto;
}

.wrap > .container {
    padding: 60px 15px 20px;
}

.footer {
    height: 270px;
    background-color: #f0f0f0;
    background: linear-gradient(to bottom, #f0f0f0, #c0c0c0);
    border-top: 2px solid #999;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

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

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

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

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.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: 11px 15px 10px 0;
    border: none;
}

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

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

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

ul.breadcrumb {
    background: #f0f0f0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.nav-logout {
    border: none;
    background: #fff;
    color: #333;
    padding-top: 3px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 4px;
    display: block;
    width: 100%;
    text-align: left;
}

.nav-logout:hover,
.nav-logout:focus,
.nav-logout:active {
    background: #d9230f;
    color: #fff;
}

tr.tr-link {
    cursor: pointer;
}

.upload-messages {
    min-height: 200px;
    max-height: 289px;
    height: 289px;
    overflow: auto;
}

.upload-message {
    margin-bottom: 7px;
}

.upload-message:last-child {
    margin-bottom: 0px;
}

#w0.grid-view table.table thead tr,
#w1.grid-view table.table thead tr {
    background: #527495;
    border: 1px solid #527495;
}

#w0.grid-view table.table thead tr th,
#w1.grid-view table.table thead tr th {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #fff;
}

#w0.grid-view table.table thead tr th a,
#w1.grid-view table.table thead tr th a {
    color: #fff;
}

#money-status {
    color: #fff;
    padding: 0;
}

#money-status a {
    background: #333;
    padding: 10px 13px;
    margin-top: 9px;
    border-radius: 4px;
    color: #f0f0f0;
}

#custom-upload {
    color: #fff;
    padding: 0;
}

#custom-upload a {
    background-image: -webkit-linear-gradient(#02a5de, #029acf 6%, #028fc0);
    background-image: -o-linear-gradient(#02a5de, #029acf 6%, #028fc0);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#02a5de), color-stop(6%, #029acf), to(#028fc0));
    background-image: linear-gradient(#02a5de, #029acf 6%, #028fc0);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff02a5de', endColorstr='#ff028fc0', GradientType=0);
    -webkit-filter: none;
    filter: none;
    border: 1px solid #333;

    padding: 10px 13px;
    margin-top: 9px;
    border-radius: 4px;
    color: #f0f0f0;
    margin-right: 10px;
}

.credit-status {
    display: inline-block;
    background: #333;
    padding: 12px 15px;
    margin-top: 6px;
    border-radius: 4px;
    font-size: 18px;
    color: #f0f0f0;
}

.credit-status:hover {
    color: #fff;
    background: #4f4f4f;
    text-decoration: none;
}


.breadcrumbs-fixed-top {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}

/* Ensure content inside aligns with Bootstrap container widths */
.breadcrumbs-fixed-top .container {
    padding-left: 15px;
    padding-right: 15px;
}



.upload-title {
    font-size: 17px;
    background: #f4f4f4;
    border-bottom: 3px solid #527495;
    color: #222;
    margin-bottom: 20px;
}

.upload-title-number {
    font-weight: bold;
    background: #527495;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F85032', endColorstr='#ED1B24', GradientType=0 );
    display: inline-block;
    padding: 6px 16px;
    text-align: center;
    color: #fff;
    margin-right: 10px;
}

.upload-inputs {
    padding: 0 10px;
}

.upload-inputs small i {
    margin-right: 0.5ch;
}

.upload-section {
    margin-bottom: 10px;
}

.completed-file {
    background: #666;
    color: #fff;
}

.completed-file a, .completed-file a:hover {
    color: #fff;
}

.completed-file a:focus {
    color: #ff9;
}

.completed-file .not-set {
    color: rgba(255, 255, 255, 0.8);
}

.text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 250px;
}

table.table.font-smaller {
    font-size: 12px;
}

.breadcrumb > li + li.pull-right:before {
    color: #ccc;
    content: "";
    padding: 0 0px;
}

.breadcrumb > li + li.pull-right:after {
    color: #ccc;
    content: "|";
    padding: 0 5px;
}

.breadcrumb > li + li.pull-right.last:after {
    padding: 0px;
    content: "";
}



h4 .fa {
    font-size: 17px;
}

h1 .fa {
    font-size: 33px;
}

.front-banner {
    background: #f6f6f6;
    border: 1px solid #f0f0f0;
    height: 340px;
    margin-bottom: 5px;
    border-radius: 5px;
    padding: 10px 13px;
}

.alert-imposer {
    padding: 7px 10px;
    border-radius: 0px;
    border-left: none;
    border-right: none;
    border-top: none;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 35px;
    top: 60px; /* Move alert below the nav bar */
}

.tooltip {
    white-space: nowrap;
}

.tooltip-inner {
    max-width: none;
    white-space: nowrap;
}

body .alert hr {
    margin: 10px 0;
}

hr {
    margin: 10px 0px;
}

.navbar-brand>img {
    max-height: 30px;
    margin-top: -4px;
}

.select2-container--bootstrap .select2-selection--single {
    height: 44px;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    padding-top: 6px;
}
.popover {
    border-color: #bce8f1 !important;
    background: #bce8f1;
    min-width: 475px;
}
.popover-title {
    background: #bce8f1;
    border-color: #bce8f1 !important;
    font-weight: bold;
    color: #31708f;
}
.popover-content {
    background: #d9edf7;
    color: #31708f;
    font-size: 13px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
.popover.right>.arrow:after {
    border-right-color: #bce8f1;
}

.text-white {
    color: #FFF !important;
}
@media (max-width: 768px){

  /* general spacing */
  .site-index .body-content{ padding-top: 0 !important; }
  .site-index .row{ margin-left: -10px; margin-right: -10px; }
  .site-index [class*="col-"]{ padding-left: 10px; padding-right: 10px; }

  /* Welcome title */
  .site-index h4{
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin-top: 10px !important;
  }

  /* Panel heading: makni float da se složi jedno ispod drugog */
  .panel-heading .pull-left,
  .panel-heading .pull-right{
    float: none !important;
    text-align: left !important;
  }
  .panel-heading .pull-right a{
    display: inline-block;
    margin-top: 6px;
  }

  /* Table tweaks (manji padding, čitljivije) */
  .table > thead > tr > th,
  .table > tbody > tr > td{
    padding: 10px 8px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Dugme View da ne bude preširoko */
  .btn-block{
    display: inline-block !important;
    width: auto !important;
  }

  /* Stats panel: ikona + brojevi da se ne razvale */
  .site-index .panel-body h1{ margin-top: 10px !important; }
  .site-index .panel-body .fa-file-o{ font-size: 34px !important; }

  /* “Tuning specification” naslov */
  .site-index .h2{
    font-size: 20px !important;
    margin: 10px 0 !important;
  }

  /* Iframe: 900px je previše na mobitelu */
  .embed-responsive{ height: 70vh !important; }
}

@media (max-width: 768px) {
  /* Tvoj postojeći kod za tabelu... */
  .alert.alert-success table, .alert.alert-success td { display: block !important; width: 100% !important; }

  /* KLJUČNI FIX: Ako ti je alert-imposer fixed, on guši mobitel */
  .alert-imposer {
    position: relative !important; /* Skida ga sa vrha da ne prekriva formu */
    top: 0 !important;             /* Poništava odmak od navbara */
    height: auto !important;       /* Dozvoljava da se raširi koliko mu treba */
    margin-top: 10px;              /* Da ne poljubi baš breadcrumb */
    z-index: 1;
  }

  /* Centriraj ikonu na mobitelu da ljepše izgleda kad je iznad teksta */
  .alert.alert-success td[rowspan] {
    text-align: center;
    border: none;
  }
}

.welcome-msg-i {
    float: left;
    padding: 20px 0 20px;
    color: #fff;
    background: rgba(0, 0, 0, .19); 
    width: 40px;
    text-align: center;
    height: 60px; /* Dodao da se poravna sa glavnim boxom */
}

.welcome-msg {
    float: left; 
    padding: 20px 0px; 
    color: rgb(255, 255, 255); 
    background: rgba(0, 0, 0, 0.13); 
    width: 220px; 
    height: 60px;
    position: relative; /* Bitno za pozicioniranje teksta */
    overflow: hidden;    /* Skriva tekst koji izađe van 370px */
    white-space: nowrap; /* Drži tekst u jednoj liniji */
}

.scroll-text {
    display: inline-block;
    position: absolute;
    padding-left: 100%; /* Početna pozicija desno */
    animation: simple-marquee 12s linear infinite;
    line-height: 20px; /* Da se poravna sa tvojim paddingom */
    font-weight: 500;
}

/* Animacija za kretanje */
@keyframes simple-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Tvoj media query ostaje isti */
@media (max-width: 768px) {
    .welcome-msg, .welcome-msg-i {
        display: none;
    }
}

.table-custom-zebra tbody tr:nth-of-type(odd) { 
	background:#ffffff; 
}

.table-custom-zebra tbody tr:nth-of-type(even) { 
	background:#f6f8fa; 
}

.table-custom-zebra tbody tr:hover { 
	background:#edf0f3 !important; 
}

.search-wrapper {
		display:flex; 
		align-items:center;
}

@media (max-width: 767px) {

    .search-group {
        width: 200px !important;
    }
    
}

/* Hadis */
.table-custom-zebra {
	margin-bottom:0; 
	font-size:12px;
}
.panel-title {
	font-weight:bold; 
	color:#44546a; 
	font-size:16px !important;
	margin:0; 
	white-space:nowrap;
}
.panel-title-admin {
	font-weight:bold; 
	color:#ffffff; 
	font-size:14px !important;
	margin:0; 
	white-space:nowrap;
}
.panel-heading {
	background:#fff !important; 
	border-bottom:1px solid #eee !important; 
	padding:10px 5px !important;
}
.panel-heading-lijevo {
	display:flex; 
	justify-content:space-between; 
	align-items:center; 
	flex-wrap:nowrap;
}

/* Custom ON-HOLD boja (#ff5e20) */
.alert-hold {
    color: #ffffff;
    background-color: #ff5e20;
    border-color: #e64d10; /* Malo tamnija za rub */
}
.alert-hold hr { 
    border-top-color: #d9450d; 
}
.alert-hold .alert-link, 
.alert-hold h4, 
.alert-hold strong { 
    color: #ffffff; 
}

.notif-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.notif-item a {
    display:block;
    text-decoration:none;
    color:#333;
}

.notif-unread {
    background:#f8fbff;
    border-left:4px solid #3c71e7;
}

.notif-read {
    background:#ffffff;
    opacity:0.75;
}

.notif-item:hover {
    background:#f1f1f1;
}

/* =======================
   USER FOOTER
======================= */

.footer-user {
    background: #34495e;
    color: #bdc3c7;
    padding: 20px 0;
    border-top: 4px solid #3498db;
    margin-top: 50px;
}

.footer-user a {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 15px;
}

.footer-user a:hover {
    color: #ffffff;
}

.footer-title {
    margin: 0;
    font-weight: bold;
    color: #ffffff;
}

.footer-accent {
    color: #3498db;
}

.footer-version {
    color: #95a5a6;
    font-weight: normal;
    margin-left: 10px;
}

/* layout */
.footer-row {
    display: flex;
    align-items: center;
}

/* =======================
   ADMIN FOOTER
======================= */
.container.main-content { 
	flex: 1 0 auto; 
	min-width: 0; 
}
.footer-admin {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 20px 0;
    border-top: 4px solid #e74c3c;
}

.footer-admin a {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 15px;
}

.footer-admin a:hover {
    color: #ffffff;
}

.footer-accent-admin {
    color: #e74c3c;
}

.footer-title {
    margin: 0;
    font-weight: bold;
    color: #ffffff;
}

.footer-version {
    color: #7f8c8d;
    font-weight: normal;
    margin-left: 10px;
}

/* layout */
.footer-row {
    display: flex;
    align-items: center;
}

/* MOBILE */
@media (max-width: 768px) {
	
	.container {
		margin-right: 1px !important;
    	margin-left: 1px !important;
	}

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-admin .text-right {
        text-align: center !important;
        margin-top: 10px;
    }

    .footer-admin a {
        margin-left: 10px;
        margin-right: 10px;
        display: inline-block;
    }
	.footer-user .text-right {
        text-align: center !important;
        margin-top: 10px;
    }

    .footer-user a {
        margin-left: 10px;
        margin-right: 10px;
        display: inline-block;
    }
}

/* =========================================================================
   MODERNI ELEMENTI (DODATO ZA NOVI DIZAJN KARTICA, TABELA I CHATA)
   ========================================================================= */

/* Paneli i kartice */
.panel-modern {
	border: 1px solid #c8d1d9 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    margin-bottom: 25px;
    background: #ffffff !important;
}

.panel-custom-heading {
    background: #2c3e50 !important;
    color: #fff !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: none;
    padding: 20px 20px !important;
}
/* Modifikacije za table-custom-zebra (nasljeđuje tvoje ali dodaje moderniji štih) */
.table-custom-zebra > thead > tr > th {
    background: #fdfdfd;
    color: #7f8c8d;
    font-size: 13px;
    border-bottom: 2px solid #ecf0f1;
    padding: 12px 5px;
    text-transform: uppercase;
    border-top: none !important;
}

.table-custom-zebra > tbody > tr > td, 
.table-custom-zebra > tbody > tr > th {
    padding: 5px;
    vertical-align: middle;
    border-top: 1px solid #ecf0f1;
}

.table-custom-zebra > tbody > tr > th {
    background: #fdfdfd;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}
/* Bedževi */
.status-badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.file-badge {
    background: #ecf0f1;
    color: #2c3e50;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Filter Box (Admin zona) */
.filter-box {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    margin-bottom: 20px;
}

/* Moderni Tabovi (Korisnički profil) */
.nav-tabs-modern {
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}
.nav-tabs-modern > li > a {
    border: none !important;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 15px;
    border-radius: 0;
    padding: 10px 20px;
    background: transparent !important;
}

.nav-tabs-modern > li.active > a {
    color: #3498db !important;
    border-bottom: 3px solid #3498db !important;
}
.nav-tabs-modern > li > a:hover {
    color: #34495e !important;
}

/* Finansijski blokovi (Korisnički profil) */
.finance-block {
    background: #fdfdfd;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.finance-block-title {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}
.finance-block-value {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Statistika Liste (Klijentski Dashboard) */
.stat-list-item {
    border-left: 4px solid transparent;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #ecf0f1;
    border-radius: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.stat-list-item:last-child {
    border-bottom: none;
}

/* Moderan Chat (Oblačići) */
.chat-container {
    height: 350px;
    overflow-y: auto;
    background: #f9fbfc;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}
.chat-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    clear: both;
}
.chat-admin {
    float: right;
    background: #3498db;
    color: #fff;
    border-bottom-right-radius: 0;
}
.chat-user {
    float: left;
    background: #ecf0f1;
    color: #2c3e50;
    border-bottom-left-radius: 0;
}
.chat-time {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 3px;
}
.chat-attachment {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0,0,0,0.1);
    padding: 3px 8px;
    border-radius: 4px;
}
.chat-admin .chat-attachment { color: #fff; text-decoration: none; }
.chat-user .chat-attachment { color: #2c3e50; text-decoration: none; }

/* Paginacija Modern */
.pagination-modern > li > a, .pagination-modern > li > span {
    color: #2c3e50;
    border: 1px solid #ecf0f1;
    margin: 0 2px;
    border-radius: 4px;
}
.pagination-modern > .active > a, 
.pagination-modern > .active > span, 
.pagination-modern > .active > a:hover, 
.pagination-modern > .active > span:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

    .upload-section-modern {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        margin-bottom: 25px;
        border: 1px solid #ecf0f1;
        overflow: hidden;
    }
    .upload-title-modern {
        background: #2c3e50;
        border-bottom: 1px solid #ecf0f1;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        font-weight: 600;
        color: #ffffff;
        font-size: 15px;
    }
    .upload-title-number-modern {
        background: #3498db;
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 14px;
        margin-right: 12px;
    }
    .upload-inputs-modern {
        padding: 25px;
    }

    /* Checkbox kao dugme */
    .tuning-opt-label {
        display: block;
        background: #f9fbfc;
        border: 1px solid #bdc3c7;
        padding: 10px 15px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 13px;
        color: #44546a;
        font-weight: normal;
        margin-bottom: 10px;
    }
    .tuning-opt-label:hover {
        background: #fdfdfd;
        border-color: #3498db;
    }
    .tuning-opt-label input[type="checkbox"] {
        display: none; /* Sakrij pravi checkbox */
    }
    /* Kada je čekiran */
    .tuning-opt-label input[type="checkbox"]:checked + span {
        font-weight: bold;
        color: #e67e22;
    }
    .tuning-opt-label:has(input[type="checkbox"]:checked) {
        background: #fffdf5;
        border-color: #f39c12;
        border-width: 2px;
        padding: 9px 14px; /* kompenzacija za 2px border */
    }
    
    .form-control-modern {
        box-shadow: none;
        border-color: #bdc3c7;
        border-radius: 4px;
        height: 40px;
    }
    .form-control-modern:focus {
        border-color: #3498db;
        box-shadow: 0 0 5px rgba(52,152,219,0.3);
    }

.panel-footer{
	text-align: center;
	background: #fff;
    border-top: 1px solid #ecf0f1;
    padding: 15px 20px;
    border-radius: 0 0 8px 8px;
}