body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-bottom: 20px;
    font-weight: 500;
}

.header-section {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header-section .bazaH1 {
    margin: 0;
    font-size: 2em;
    color: #fff;
}

.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.book-btn,
.logout-btn {
    background-color: #5cb85c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.book-btn:hover {
    background-color: #4cae4c;
}

.logout-btn {
    background-color: #d9534f;
}

.logout-btn:hover {
    background-color: #c9302c;
}

.filter-container {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 11%;
}

.filter-container input {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

#filterInput {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.filter-form {
    margin: 20px 0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 11%;
}

.filter-controls label {
    font-weight: 500;
}

#datePicker {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    width: 200px;
}

.dugmad-grupa {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #388e3c;
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
    }

    .filter-controls label,
    #datePicker,
    .dugmad-grupa {
        width: 100%;
        margin-bottom: 5px;
    }

    #datePicker {
        width: 100%;
    }

    .dugmad-grupa {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .filter-btn {
        width: 48%;
    }
}

.table-wrapper {
    margin: 0 20px;
    overflow-x: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 80%;
    margin: 20px auto;
}

#userTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#userTable th,
#userTable td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    white-space: nowrap;
}

#userTable th {
    background-color: #007bff;
    cursor: pointer;
    position: relative;
}

#userTable th span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#userTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#userTable tr:hover {
    background-color: #f1f1f1;
}

.action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.1s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
}

.btn-action:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.btn-plus {
    background: #007bff;
    color: #fff;
    font-size: 18px;
}

.btn-plus:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-minus {
    background: #dc3545;
    color: #fff;
    font-size: 18px;
}

.btn-minus:hover {
    background: #bd2130;
    transform: translateY(-1px);
}

.action-btns .btn-action:not(.btn-plus):not(.btn-minus) {
    width: auto;
    height: 36px;
    padding: 0 12px;
    font-weight: 600;
    font-size: 14px;
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
}

.action-btns .btn-action:not(.btn-plus):not(.btn-minus):hover {
    background: #5a6268;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .btn-action {
        width: 40px;
        height: 40px;
    }

    .action-btns .btn-action:not(.btn-plus):not(.btn-minus) {
        height: 40px;
    }

    .navigation-buttons {
        gap: 15px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .filter-container input {
        width: 90%;
    }

    .filter-container {
        text-align: center;
        padding-left: 0;
        padding-top: 20px;
    }

    .case-study {
        margin-top: 60px;
        padding: 2em 1em;
    }

    .case-study .col-md-12 {
        margin-top: 50px;
        padding: 2em 1em;
        transform: translateY(-40px);
    }

    .filter-container,
    .table-wrapper {
        margin: 20px 10px;
        max-width: 95%;
    }

    #filterInput {
        width: 90%;
        margin-bottom: 20px;
    }

    #userTable th,
    #userTable td {
        font-size: 0.85em;
        padding: 8px;
    }

    .book-btn,
    .logout-btn {
        padding: 4px 9px;
        font-size: 0.9em;
    }
}

.case-study .col-md-12 {
    border-radius: 10px;
    margin-top: 150px;
    background-color: #d0d4d6;
    box-shadow: 0 0 100px rgb(0 0 0 / 0.15);
    padding: 5em 3em;
    transform: translateY(-80px);
    -webkit-transform: translateY(-80px);
}

.message-container {
    background-color: #e0ffe0;
    color: #28a745;
    border: 1px solid #28a745;
    padding: 15px 25px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
    max-width: 600px;
    display: none;
    font-family: Arial, sans-serif;
}

.message-container p {
    margin: 0;
    font-size: 1.1em;
}

.error-message {
    color: #d9534f;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 700;
}

#calendarMonthYear {
    font-size: 2.5em;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.08);
    font-family: Arial, sans-serif;
}

.day-name {
    font-weight: 600;
    text-align: center;
    padding: 15px 0;
    color: #555;
    border-radius: 8px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.day {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease-in-out,
        transform 0.2s ease-in-out;
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.day:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
}

.current-day {
    background-color: #1a1a1a;
    color: #fff;
    font-weight: 700;
    border-color: #5cb85c;
    box-shadow: 0 4px 8px rgb(92 184 92 / 0.3);
}

.current-day:hover {
    background-color: #4cae4c;
}

.has-appointment {
    background-color: #5cb85c;
    color: #fff;
    font-weight: 600;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgb(0 123 255 / 0.3);
}

.has-appointment:hover {
    background-color: #4cae4c;
}

.day.current-day.has-appointment {
    background-color: #5cb85c;
    border-color: #6f42c1;
    box-shadow: 0 6px 10px rgb(111 66 193 / 0.3);
}

.day.current-day.has-appointment:hover {
    background-color: #4cae4c;
}

.calendar-navigation {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.calendar-navigation button {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition:
        background-color 0.2s ease-in-out,
        transform 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
    font-family: Arial, sans-serif;
}

.calendar-navigation button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 0.5);
    padding-top: 60px;
    animation: fadeIn 0.3s ease-out forwards;
}

.modal.show {
    display: block;
}

.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: #fff0 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
    position: relative;
    animation: slideInFromTop 0.4s ease-out forwards;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 999999999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 38px;
    font-weight: 700;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}

.modal-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.modal-content input[type="time"],
.modal-content input[type="text"],
.modal-content .form-control {
    width: calc(100% - 20px);
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.modal-content input[type="time"]:focus,
.modal-content input[type="text"]:focus,
.modal-content .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 0.25);
    outline: none;
}

.flatpickr-input {
    background-color: #fff;
}

.modal-content .zk-termin-btn {
    background-color: #5cb85c;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition:
        background-color 0.2s ease-in-out,
        transform 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgb(92 184 92 / 0.2);
}

.modal-content .zk-termin-btn:hover {
    background-color: #4cae4c;
    transform: translateY(-2px);
}

.modal-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
}

.appointments-wrapper {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.05);
    width: 100%;
}

#appointmentsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-family: Arial, sans-serif;
}

#appointmentsTable th,
#appointmentsTable td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    position: relative;
}

#appointmentsTable th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

#appointmentsTable tbody tr:last-child td {
    border-bottom: none;
}

#appointmentsTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#appointmentsTable tbody tr:hover {
    background-color: #f1f1f1;
}

.confirmed-appointment {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.confirmed-appointment:hover {
    background-color: #c3e6cb;
}
.canceled-appointment { 
    background-color: rgba(220, 53, 69, 0.1); 
    color: #666; 
}
.status-badge-confirmed { 
    color: #28a745; 
    font-weight: bold; 
}
.status-badge-canceled { 
    color: #dc3545; 
    font-weight: bold; 
}

.appointments-wrapper .work-input,
.appointments-wrapper .price-input {
    width: calc(100% - 10px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.confirm-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.cancel-btn,
.confirm-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    margin: 2px 0;
    font-family: Arial, sans-serif;
}

.cancel-btn {
    background-color: #dc3545;
    color: #fff;
}

.cancel-btn:hover {
    background-color: #c82333;
}

.confirm-btn {
    background-color: #007bff;
    color: #fff;
}

.confirm-btn:hover {
    background-color: #0056b3;
}

.d-none {
    display: none !important;
}

@media (max-width: 768px) {
    .calendar {
        gap: 5px;
        padding: 15px;
    }

    .day,
    .day-name {
        font-size: 0.9em;
        padding: 15px 5px;
        min-height: 60px;
    }

    #calendarMonthYear {
        font-size: 1.8em;
    }

    .calendar-navigation button {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        box-sizing: border-box;
    }

    .modal-content h3 {
        font-size: 1.5em;
    }

    .modal-content h4 {
        font-size: 1.2em;
    }

    .modal-content label,
    .modal-content input,
    .modal-content button {
        font-size: 0.9em;
    }

    #appointmentsTable th,
    #appointmentsTable td {
        padding: 8px 10px;
        font-size: 0.85em;
        white-space: nowrap;
    }

    .appointments-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    #appointmentsTable {
        min-width: 600px;
        width: 100%;
    }

    .cancel-btn,
    .confirm-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .calendar {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.75em;
        padding: 10px;
    }

    .day,
    .day-name {
        min-height: 45px;
        padding: 10px 3px;
    }

    .calendar-header {
        padding: 15px;
    }

    #calendarMonthYear {
        font-size: 1.5em;
    }

    .modal-content input[type="time"],
    .modal-content input[type="text"] {
        padding: 10px;
        font-size: 1em;
    }

    .modal-content .zk-termin-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    #appointmentsTable td:nth-child(6),
    #appointmentsTable td:nth-child(7) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.service-selection {
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f0f0f0;
    position: fixed;
    z-index: 10001;
    display: none;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    width: 90%;
    max-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-selection.active {
    display: block;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px dotted #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item span {
    margin-left: 10px;
    text-align: right;
    white-space: nowrap;
}

.service-item label {
    margin-bottom: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    display: flex;
}

.service-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.total-price-display {
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}

.confirm-btn[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

.confirmed-appointment {
    background-color: #e6ffe6;
}

.dropdown-header {
    color: #fff;
    background-color: #5cb85c;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    font-weight: 700;
    position: relative;
    border-radius: 5px;
    border-bottom: 1px solid #ddd;
}

.dropdown-header::after {
    content: "\25BC";
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.2s;
}

.dropdown-header.active::after {
    transform: rotate(180deg);
}

.contact-form-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 10px rgba(204, 204, 204, 0.5);
    padding: 40px;
    max-width: 500px;
    margin: 50px auto 0 auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-container label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    color: #555;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form-container input[type="text"]::placeholder,
.contact-form-container input[type="email"]::placeholder,
.contact-form-container input[type="tel"]::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container input[type="tel"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgb(0 123 255 / 0.25);
    outline: none;
}

.contact-form-container .btn {
    background-color: #007bff;
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 15px rgb(0 123 255 / 0.2);
    margin-top: 15px;
}

.contact-form-container .btn:hover {
    background-color: #0056b3;
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sama forma */
.contact-form-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 10px rgba(204, 204, 204, 0.5);
    padding: 40px;
    max-width: 500px;
    margin: 50px auto 0 auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .admin-container {
        padding: 20px;
    }

    .contact-form-container {
        max-width: 420px;
        padding: 25px;
        margin-top: 30px;
    }
}

/* Telefoni */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
        margin: 10px auto;
        box-shadow: none;
        background: transparent;
    }

    .contact-form-container {
        max-width: 90%;
        padding: 20px;
        margin-top: 20px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }

    .contact-form-container input,
    .contact-form-container button {
        font-size: 14px;
    }
}

/* Mali telefoni (npr. Galaxy S25, iPhone SE) */
@media (max-width: 430px) {
    .contact-form-container {
        max-width: 92%;
        padding: 14px;
        margin-top: 15px;
        border-radius: 8px;
    }

    .contact-form-container input,
    .contact-form-container button {
        font-size: 13px;
        padding: 8px;
    }

    .admin-container {
        padding: 8px;
    }
}

.edit-btn,
.save-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
}

.edit-btn {
    background-color: #007bff;
    color: #fff;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.save-btn {
    background-color: #28a745;
    color: #fff;
    display: none;
}

.save-btn:hover {
    background-color: #218838;
}

.table-responsive input[type="number"],
.table-responsive textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.table-responsive td.work-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px;
}

.service-list>div {
    display: flex;
    align-items: center;
}

.service-list input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.service-list label {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.2;
}

.service-list input[type="checkbox"]:checked+label {
    font-weight: 700;
    color: #007bff;
}

.filter-btn {
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #5cb85c;
    color: #fff;
    font-size: 16px;
}

.table thead th {
    background-color: #28a745;
    color: #fff;
}

.cenovnik-container {
    padding-top: 20px;
}

.cenovnik-card {
    margin-bottom: 25px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.05);
}

.cenovnik-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
    font-size: 1.2em;
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-header {
    text-align: center;
}

.cenovnik-card .card-body {
    padding: 20px;
}

.action-buttons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.action-icon {
    width: 20px;
    height: 20px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
        max-width: 90%;
        margin-top: 30px;
    }

    #userTable {
        min-width: 0;
    }

    h1 {
        font-size: 1.5em;
    }

    .cenovnik-container {
        padding: 10px;
    }

    .cenovnik-card {
        margin-bottom: 15px;
    }

    .table thead th,
    .table tbody td {
        font-size: 0.85rem;
        padding: 8px;
    }

    .action-buttons {
        display: flex;
        gap: 8px;
        align-items: flex-start;
    }

    .action-icon {
        width: 20px;
        height: 20px;
    }

    .btn.btn-sm {
        padding: 5px 8px;
    }
}

.custom-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f6f6f6;
    color: #111;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.08);
    text-decoration: none;
}

.custom-action-button:hover {
    background: #ececec;
    transform: translateY(-1px);
}

.custom-action-button .action-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .custom-action-button {
        width: 36px;
        height: 36x;
        padding: 8px;
    }

    .custom-action-button .action-icon {
        width: 30px;
        height: 30px;
    }
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
}

.admin-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-container h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #34495e;
}

.admin-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.admin-message.success {
    background-color: #d4edda;
    color: #155724;
}

.admin-message.error {
    background-color: #ffebee;
    color: #c62828;
}

.blog-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.blog-form label {
    font-weight: 600;
    color: #555;
}

.blog-form input[type="text"],
.blog-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.blog-form input:focus,
.blog-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    margin: 0;
    padding: 0;
}

.blog-form input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
    order: 1;
}

.blog-form button {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 30%;
    margin: 20px auto 0;
    display: block;
}

.blog-form button:hover {
    background: #45a049;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}

.admin-table th {
    background-color: #4caf50;
    color: #fff;
}

.admin-table tr:hover {
    background-color: #f1f1f1;
}

.admin-table .izmeni-btn,
.admin-table .obrisi-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    transition:
        background-color 0.3s,
        transform 0.2s;
}

.admin-table .izmeni-btn {
    background-color: #007bff;
    color: #fff;
    margin-right: 10px;
}

.admin-table .izmeni-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.admin-table .obrisi-btn {
    background-color: #dc3545;
    color: #fff;
}

.admin-table .obrisi-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
    }

    .admin-table td {
        text-align: left;
        display: flex;
        padding: 10px 15px;
        position: relative;
        border: none;
        align-items: baseline;
    }

    .admin-table td::before {
        content: attr(data-label);
        margin-right: 10px;
        font-weight: 700;
    }

    .admin-table td[data-label="Aktivno"] {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .admin-table td[data-label="Aktivno"]::before {
        position: static;
        content: "Aktivno";
    }

    .blog-form button {
        width: 100%;
    }
}

.dodaj-uslugu-forma {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-grupa {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-grupa label {
    font-weight: 500;
    margin-bottom: 5px;
}

.form-grupa input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.dugme-grupa {
    display: flex;
    align-self: flex-end;
    padding-top: 19px;
}

.btn-dodaj {
    padding: 6.5px 20px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-dodaj:hover {
    background-color: #249640;
}

@media (max-width: 768px) {
    .dodaj-uslugu-forma {
        flex-direction: column;
        align-items: stretch;
    }

    .form-grupa,
    .dugme-grupa {
        width: 100%;
    }
}

.admin-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 15px 20px;
    text-align: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 5px rgb(0 0 0 / 0.1);
    bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
    z-index: 10000;
}

.admin-container {
    padding-bottom: calc(var(--dock-h) + 64px);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    font-size: 14px;
}

.footer-text strong {
    color: #fff;
    margin-right: 5px;
}

.login-box,
.reset-box,
.forgot-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-box h2,
.reset-box h2,
.forgot-box h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    text-align: left;
}

.formH {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgb(0 123 255 / 0.25);
    outline: none;
}

.login-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.register-demo-btn,
.uloguj-se-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    margin-bottom: 10px;
}

.register-demo-btn:hover,
.uloguj-se-btn:hover {
    background-color: #0069d9;
    transform: scale(1.02);
}

.register-demo-btn:active,
.uloguj-se-btn:active {
    transform: scale(0.98);
}

.login-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#login-page,
#reset-page,
#forgot-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.form-logo {
    width: 80px;
    height: auto;
}

.contact-client-btn {
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 7px;
    transition: background-color 0.3s ease;
}

.contact-client-btn:hover {
    background-color: #218838;
}

.delete-form-btn {
    background-color: #d43b48;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px;
    transition: background-color 0.3s ease;
}

.delete-form-btn:hover {
    background-color: #bd2130;
}

.contact-client-btn {
    background-color: #28a745;
    color: #fff;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition:
        background-color 0.2s,
        transform 0.1s,
        box-shadow 0.2s;
    margin-right: 5px;
}

.contact-client-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.dodaj-uslugu-forma {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-grupa {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.form-grupa input[type="text"],
.form-grupa input[type="number"],
.form-grupa select {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.dugme-grupa {
    align-self: flex-end;
    padding-bottom: 2px;
}

.btn-dodaj {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-dodaj:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .dodaj-uslugu-forma {
        flex-direction: column;
        align-items: stretch;
    }

    .dugme-grupa {
        width: 100%;
        margin-top: 10px;
    }
}

.calendar-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 15px 0;
    color: #333;
}

.admin-h1 {
    font-family: "Poppins", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin: 20px 0;
    padding: 15px 25px;
    letter-spacing: 1px;
}

.editAdmin-button {
    color: #0d6efd;
}

.editAdmin-button:hover {
    background: rgb(13 110 253 / 0.12);
}

.delete-button {
    color: #dc3545;
}

.delete-button:hover {
    background: rgb(220 53 69 / 0.12);
}

.action-icon {
    width: 18px;
    height: 18px;
}

.action-buttons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f6f6f6;
    color: #111;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.08);
}

.icon-btn:hover {
    background: #ececec;
    transform: translateY(-1px);
}

.edit-btn {
    color: #0d6efd;
}

.edit-btn:hover {
    background: rgb(13 110 253 / 0.12);
}

.save-btn {
    color: #198754;
}

.save-btn:hover {
    background: rgb(25 135 84 / 0.12);
}

.action-buttons svg {
    width: 18px;
    height: 18px;
}

.zakazivanje-page {
    padding-bottom: calc(var(--dock-h, 62px) + 96px);
    scroll-padding-bottom: calc(var(--dock-h, 62px) + 96px);
}

@media (max-width: 420px) {
    :root {
        --dock-h: 52px;
    }

    .zakazivanje-page {
        padding-bottom: calc(var(--dock-h) + 84px);
        scroll-padding-bottom: calc(var(--dock-h) + 84px);
    }
}

.sys-banner {
    background: #fffbeb;
    color: #92400e;
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #fde68a;
}

.sys-banner--ro {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Glavni grid: 4 kolone na desktopu, 1 kolona na mobilnom */
body#superadmin .supergrid-2x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1600px;
    margin-left: 60px;
    margin-right: 60px;
    align-items: start;
}

/* Kartice jednake visine */
body#superadmin .supergrid-2x2 .card {
    height: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Mobilni prikaz: jedna kolona ispod druge */
@media (max-width: 1100px) {
    body#superadmin .supergrid-2x2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body#superadmin .supergrid-2x2 .card {
        height: auto;
    }
}

/* Dugmad samo za superadmin stranicu */
body#superadmin button.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 1rem;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body#superadmin button.badge:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

body#superadmin button.badge:active {
    background: #1e40af;
    transform: translateY(0);
}

body#superadmin button.badge:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Varijante ako želiš različite boje za svaku sekciju */
body#superadmin .card:nth-child(1) button.badge {
    background: #2563eb;
}

/* Add Tenant */
body#superadmin .card:nth-child(1) button.badge:hover {
    background: #1d4ed8;
}

body#superadmin .card:nth-child(2) button.badge {
    background: #2563eb;
}

/* Add Admin */
body#superadmin .card:nth-child(2) button.badge:hover {
    background: #1d4ed8;
}

body#superadmin .card:nth-child(3) button.badge {
    background: #2563eb;
}

/* Add Subscription */
body#superadmin .card:nth-child(3) button.badge:hover {
    background: #1d4ed8;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body#superadmin button.badge {
        color: #f9fafb;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    body#superadmin button.badge {
        margin-top: 10px;
    }
}

/* Dugmad dole levo unutar svake kartice */
body#superadmin .card-bd {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body#superadmin .card-bd form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 100%;
}

body#superadmin .card-bd p {
    margin-top: auto;
    align-self: flex-start;
}

/* 1) Spreči horizontalni scroll */
body#superadmin {
    overflow-x: hidden;
}

/* 2) Grid centriraj i suzi padding na uskim ekranima */
@media (max-width: 480px) {
    body#superadmin .supergrid-2x2 {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0 8px;
        /* umesto margina levo/desno */
        margin: 0 auto;
    }

    body#superadmin .supergrid-2x2 .card {
        width: 96%;
        max-width: 380px;
    }

    /* Polja u jednoj koloni da ne guraju širinu */
    body#superadmin .grid {
        grid-template-columns: 1fr;
    }

    body#superadmin input,
    body#superadmin select {
        min-width: 0;
    }
}

/* 3) Ekstremno uski ekrani (≤320px) */
@media (max-width: 320px) {
    body#superadmin .supergrid-2x2 {
        padding: 0 6px;
    }

    body#superadmin .supergrid-2x2 .card {
        width: 98%;
        max-width: none;
    }
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

body>.calendar-header {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    max-width: 900px;
    width: 100%;
}

/* ====== KONTEJNER ====== */
.table-scroll {
    max-height: 62vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

/* ====== TABELA ====== */
.table-scroll table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.35;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.table-scroll thead th:first-child {
    border-top-left-radius: 12px;
}

.table-scroll thead th:last-child {
    border-top-right-radius: 12px;
}

.table-scroll td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #111827;
    white-space: nowrap;
}

.table-scroll tbody tr:nth-child(even) {
    background: #fcfdff;
}

.table-scroll tbody tr:hover {
    background: #f5f7fb;
}

/* poravnanja ključnih kolona po želji */
.table-scroll td:nth-child(1) {
    width: 64px;
    text-align: right;
    color: #64748b;
}

.table-scroll td:nth-child(6) {
    width: 90px;
    text-align: right;
    color: #64748b;
}

/* ====== KONTROLE (select + dugme) ====== */
.controls {
    white-space: nowrap;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inline-form .val {
    width: auto !important;
    /* pregazi globalno 100% */
    min-width: 140px;
    height: 32px;
    font-size: 14px;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.btn-mini {
    height: 32px;
    line-height: 30px;
    font-size: 13px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #2563eb;
    color: #2563eb;
    background: #fff;
    cursor: pointer;
}

.btn-mini:hover {
    background: #2563eb;
    color: #fff;
}

/* skrolbar (opciono) */
.table-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #c7cdd6;
    border-radius: 4px;
}

/* odmak od plutajućeg footera */
.admin-main-content {
    padding-bottom: 96px;
}

/* ====== RESPONSIVE ====== */
/* tablet */
@media (max-width:1024px) {
    .table-scroll table {
        font-size: 13.5px;
    }

    .inline-form .val {
        min-width: 120px;
        height: 30px;
    }

    .btn-mini {
        height: 30px;
        line-height: 28px;
    }
}

/* mobilni */
@media (max-width:768px) {

    .table-scroll thead th,
    .table-scroll td {
        padding: 8px 10px;
    }

    .controls {
        white-space: normal;
    }

    .inline-form {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* mali mobilni */
@media (max-width:480px) {
    .table-scroll table {
        font-size: 13px;
    }

    .inline-form {
        width: 100%;
    }

    .inline-form .val {
        flex: 1 1 auto;
        min-width: 0;
        width: 100% !important;
    }

    .btn-mini {
        width: 100%;
        text-align: center;
    }

    .table-scroll td {
        white-space: normal;
    }
}

/* Zajednički stil za oba eksport dugmeta */
#exportBtn,
#exportAppointmentsBtn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-left: 10px;
}

/* Hover i active efekti */
#exportBtn:hover,
#exportAppointmentsBtn:hover {
    background-color: #0069d9;
}

#exportBtn:active,
#exportAppointmentsBtn:active {
    transform: scale(0.97);
}

/* Demo režim */
body.demo #exportBtn,
body.demo #exportAppointmentsBtn {
    background-color: #888;
    cursor: not-allowed;
}

.reports-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
}

.reports-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.report-btn {
  flex: 0 0 180px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.report-input {
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
  min-width: 140px;
}

.icon-pdf {
  width: 14px;
  height: 14px;
  background-color: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M6 2a2 2 0 0 0-2 2v16c0 1.103.897 2 2 2h12a2 2 0 0 0 2-2V8l-6-6H6zm7 1.414L18.586 9H13V3.414zM8 13h2v5H8v-5zm4 0h3a2 2 0 1 1 0 4h-3v-4zm5 0h1v5h-1v-5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 900px) {
  .reports-grid-wrap {
    grid-template-columns: 1fr;
  }
  .report-btn {
    flex: 0 0 auto;
  }
}
/* desktop: već radi */

/* mobile */
@media (max-width: 768px) {
  .reports-grid-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .reports-col {
    width: 100%;
  }

  .report-row {
    flex-wrap: wrap;
  }

  .report-btn {
    width: 100%;          /* dugme celo */
  }

  .report-input {
    width: 100%;          /* select/input ispod dugmeta */
  }
}

.grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 8px;
  column-gap: 10px;
  align-items: center;
}

/* Mobilni raspored */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .label {
    font-weight: 600;
    margin-top: 8px;
  }

  .val {
    margin-bottom: 6px;
  }

  .badge {
    display: inline-block;
    margin-top: 4px;
  }
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-left: 5px;
}

.delete-btn:hover {
    background-color: #bb2d3b;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.status-badge-canceled {
    background-color: #f8d7da;
    color: #842029;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.canceled-appointment {
    background-color: #fff5f5;
}
