/* style.css - Moderniziran Google-like interfejs */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: #333;
    padding: 20px 0;
    line-height: 1.6;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pocetna-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-height: 80px;
}

h2 {
    color: #003087;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    color: #003087;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Zastavice jezika */
.language-switcher {
    text-align: center;
    margin-bottom: 20px;
}

.language-switcher a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
    color: #00A1D6;
    font-weight: 500;
    transition: color 0.2s ease;
}

.language-switcher a:hover {
    color: #F5A623;
}

.language-switcher img {
    vertical-align: middle;
    width: 28px;
    height: 19px;
    margin-right: 5px;
}

.language-switcher-login {
    text-align: center;
    margin-bottom: 25px;
}

.language-switcher-login a {
    display: inline-block;
    margin: 0 8px;
}

.language-switcher-login img {
    width: 35px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.language-switcher-login img:hover {
    transform: scale(1.1);
}

/* Tablice */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #003087;
    color: #FFFFFF;
    text-align: left;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #E0E0E0;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #F9F9F9;
}

.priority-low { background-color: #E5FFE5; }
.priority-medium { background-color: #FFF9E5; }
.priority-high { background-color: #FFE5E5; }
.order-row[data-is-closed="1"] { background-color: #4a4a4a; color: #ffffff; }
.order-row[data-is-closed="1"]:hover { background-color: #666666; color: #ffffff; }

/* Nova klasa za kompaktne tabele i redove */
.table-compact td {
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Gumbi */
button,
.button,
input[type="submit"] {
    background-color: #00A1D6;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-weight: 500;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    max-width: 300px;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: #007bb5;
    transform: translateY(-2px);
}

.logout-btn {
    background: #CC0000;
}

.logout-btn:hover {
    background: #A30000;
}

a.button {
    color: #FFFFFF;
}

/* Novi stil za ikona dugmad */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #00A1D6;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 14px;
    margin: 0 2px;
}

.btn-icon:hover {
    background-color: #007bb5;
    transform: none;
}

.btn-danger {
    background-color: #CC0000;
}

.btn-danger:hover {
    background-color: #A30000;
}

.btn-primary {
    background-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
}

/* Stil za status plaćanja */
.paid-indicator {
    font-weight: bold;
    font-size: 12px;
}
.paid-indicator i {
    margin-right: 5px;
}
.cash-paid i {
    color: #28a745;
}
.bank-paid i {
    color: #007bff;
}

/* Forme - Općeniti stilovi */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2-3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Stilovi za profile.php i submit_inquiry.php */
.profile-form,
.inquiry-form {
    display: block;
}

.profile-form label,
.inquiry-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form select,
.inquiry-form input[type="text"],
.inquiry-form textarea,
.inquiry-form input[type="file"] {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form textarea {
    min-height: 120px;
    resize: vertical;
}

.profile-form input[type="text"]:focus,
.profile-form input[type="email"]:focus,
.profile-form input[type="password"]:focus,
.profile-form select:focus,
.inquiry-form input[type="text"]:focus,
.inquiry-form textarea:focus,
.inquiry-form input[type="file"]:focus {
    border-color: #00A1D6;
    box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.2);
    outline: none;
}

.profile-form button,
.inquiry-form button {
    padding: 12px 25px;
    background-color: #00A1D6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    max-width: 300px;
}

.profile-form button:hover,
.inquiry-form button:hover {
    background-color: #F5A623;
}

/* Stilovi za new_order.php (zadržavaju fleksibilni raspored) */
.form-container.new-order-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.form-container.new-order-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.form-group.user-type {
    flex-direction: column;
    align-items: flex-start;
}

.form-group.user-type label {
    margin-bottom: 5px;
}

.form-group.user-type div {
    width: 100%;
    display: flex;
    gap: 15px;
}

.form-group label {
    flex: 0 0 120px;
    font-weight: 600;
    color: #555;
    text-align: right;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    flex: 1;
    max-width: 500px;
    padding: 15px 20px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    border-color: #00A1D6;
    box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.2);
    outline: none;
}

.form-group textarea {
    flex: 1;
    max-width: 800px;
    padding: 15px 20px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group textarea:focus {
    border-color: #00A1D6;
    box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.2);
    outline: none;
}

.form-group button {
    padding: 12px 25px;
    background-color: #00A1D6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    max-width: 300px;
}

.form-group button:hover {
    background-color: #F5A623;
}

/* Specifični stilovi za login i register forme */
.login-form,
.register-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form input,
.register-form input,
.register-form select {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    min-width: 300px;
    max-width: 600px;
}

.login-form button,
.register-form button {
    width: 100%;
    padding: 12px 25px;
    background-color: #00A1D6;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    max-width: 300px;
}

.login-form button:hover,
.register-form button:hover {
    background-color: #F5A623;
}

#cash_fields, #invoice_field {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: center;
}

#cash_fields label, #invoice_field label {
    grid-column: 1 / -1;
    font-weight: bold;
}

/* Tabs */
/* Stari stilovi za tabove - ostavljeni kao referenca ili za druge stranice */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tabs button {
    background-color: transparent;
    color: #555;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tabs button:hover {
    color: #00A1D6;
}

.tabs button.active {
    color: #003087;
    border-bottom: 2px solid #003087;
    font-weight: 700;
}

/* Novi stilovi za moderne tabove (preuzeto sa dashboard_admin.php) */
.tabs-modern {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0;
    width: 100%;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.tab-link:hover {
    background-color: #f0f0f0;
    color: #003087;
}

.tab-link.active {
    font-weight: 700;
    border-bottom: 3px solid #00A1D6;
    color: #003087;
    background-color: #fff;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Kontejner za tab content sa belom pozadinom i senkom */
.tab-content-container {
    background: #FFFFFF;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Ispravljen padding da bi se smanjio razmak */
    padding: 5px 20px 20px 20px; 
    margin-bottom: 20px;
    border-top: none;
}

.notification-count {
    background-color: #CC0000;
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: super;
}

.notification-form button {
    background-color: #00A1D6;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-form button:hover {
    background-color: #007bb5;
}

/* Poruke */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #c3e6cb;
}

/* Linkovi */
a {
    color: #00A1D6;
    text-decoration: none;
}

a:hover {
    color: #F5A623;
}

/* Kontejner za dashboard.php */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sekcija za notifikacije */
.notifications {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.notifications ul {
    list-style-type: none;
    padding: 0;
}

.notifications li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Dugmad ispod tabova */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* Ispravljen margin-top da bi se smanjio razmak */
    margin-top: 15px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.action-buttons .button {
    flex-grow: 1;
    text-align: center;
    max-width: 300px;
}

/* Responsivnost */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-container,
    .form-container,
    .pocetna-container,
    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    .pocetna-container {
        padding: 20px;
    }

    .profile-form,
    .inquiry-form,
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group.user-type {
        flex-direction: column;
    }

    .form-group.user-type div {
        flex-direction: column;
        gap: 10px;
    }

    .form-group label,
    .profile-form label,
    .inquiry-form label {
        text-align: left;
        margin-bottom: 5px;
        flex: 0 0 auto;
    }

    .profile-form input[type="text"],
    .profile-form input[type="email"],
    .profile-form input[type="password"],
    .profile-form select,
    .inquiry-form input[type="text"],
    .inquiry-form textarea,
    .inquiry-form input[type="file"],
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: none;
    }

    button, .button, input[type="submit"],
    .login-form button,
    .register-form button,
    .profile-form button,
    .inquiry-form button,
    .form-group button {
        padding: 10px 15px;
        font-size: 15px;
        width: 100%;
        max-width: none;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    .tabs {
        flex-direction: column;
    }

    .tabs button {
        padding: 10px 12px;
        font-size: 14px;
        margin-bottom: 5px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table tr {
        border: 1px solid #E0E0E0;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    table td:before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #003087;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    table td:last-child {
        border-bottom: none;
        text-align: center;
        padding-left: 6px;
    }

    table td:last-child:before {
        content: none;
    }

    .logout-btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .notifications li {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home-buttons a button {
        width: 100%;
        max-width: 300px;
    }
	
}
/* Novi stil za simetrično poravnavanje formi */
.symmetric-form-container {
    padding: 0;
    box-shadow: none;
    background: none;
    margin-bottom: 0;
}
/* Stilovi za formulare unutar tabova */
.comment-form-container, .upload-form-container {
    max-width: 600px;
    margin: 20px 0;
}

.comment-form textarea,
.upload-form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

.comment-form button,
.upload-form button {
    background-color: #003087;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.comment-form button:hover,
.upload-form button:hover {
    background-color: #0047a5;
}
/* Stilovi specifični za formu izvještaja */
.report-filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.report-filters-form .form-group {
    flex: 1 1 100%;
    margin-right: 0;
}

.report-filters-form .form-group label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    margin-right: 10px;
    min-width: 150px;
    text-align: right;
}

.report-filters-form .form-group input,
.report-filters-form .form-group select {
    flex-grow: 1;
}

.report-filters-form .half-width {
    flex: 1 1 45%;
}

.report-filters-form .half-width:first-child {
    margin-right: 20px;
}

.report-filters-form.checkbox-row {
    justify-content: flex-start;
}

.report-filters-form.checkbox-row .form-group {
    flex: none;
    margin-right: 20px;
}

.report-filters-form.checkbox-row .form-group label {
    text-align: left;
    min-width: auto;
    font-weight: normal;
}

.report-filters-form button {
    margin-top: 10px;
}

/* Responsivnost za formu izvještaja */
@media (max-width: 768px) {
    .report-filters-form .form-group {
        flex: 1 1 100%;
        margin-right: 0;
    }
    
    .report-filters-form .form-group label {
        text-align: left;
        min-width: auto;
    }

    .report-filters-form .half-width {
        flex: 1 1 100%;
    }

    .report-filters-form .half-width:first-child {
        margin-right: 0;
    }
/* Stilovi za bojenje redova na osnovu načina plaćanja */
.payment-cash {
    background-color: #e6f7e6; /* Svijetlo zelena boja za gotovinsko plaćanje */
}

.payment-bank {
    background-color: #e6f7ff; /* Svijetlo plava boja za žiralno plaćanje */
}
}