body {
    background: #f4f7fa;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 7vh; /* За WebView */
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: linear-gradient(135deg, #bb890b, #d4a017) !important;
}

.notification-bar {
    background: #ffcc00;
    color: #333;
    padding: 10px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid #e6b800;
    margin-bottom: 20px;
}

.notification-bar.no-comments {
    background: #e0e0e0;
    border-bottom: 2px solid #b0b0b0;
}

.notification-bar:hover {
    background: #e6b800;
}

.notification-bar.no-comments:hover {
    background: #d0d0d0;
}

.notification-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
}

.container-main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #bb890b, #d4a017);
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 10px 15px;
    font-weight: 500;
}

.card-body {
    padding: 15px;
}

.time-card {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.2s;
}

.time-card i {
    font-size: 24px;
    color: linear-gradient(135deg, #bb890b, #d4a017);
    margin-bottom: 5px;
}

.time-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.time-card span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.time-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn {
    --bs-btn-color: white !important;
}

.btn-custom {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 500;
}

.btn-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #bb890b !important;
    --bs-btn-border-color: #bb890b !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #a67a0a !important;
    --bs-btn-hover-border-color: #a67a0a !important;
    --bs-btn-focus-shadow-rgb: 187, 137, 11 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #a67a0a !important;
    --bs-btn-active-border-color: #a67a0a !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #bb890b !important;
    --bs-btn-disabled-border-color: #bb890b !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #bb890b, #d4a017);
    border: none;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #61490c, #d4a017);
}

.btn-secondary-custom {
    background: #6c757d;
    border: none;
}

.btn-secondary-custom:hover {
    background: #2e343a!important;
    color: white!important;
}


.btn-danger-custom {
    background: #dc3545;
    border: none;
}

.btn-terenski {
    background: #008080;
    border: none;
    color: #fff;
}

.btn-terenski:hover {
    background: #006666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    border-radius: 10px;
    padding: 20px;
    background-color: #fefefe;
    margin: 15% auto;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.modal-header {
    border-bottom: none;
}

.close {
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-delete {
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.comment-item, .global-notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.alert {
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 400;
}

/* iPhone стил за календар */
.calendar-container {
    position: relative;
    width: 100%;
    max-width: 200px;
}

.calendar-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.calendar-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #007aff;
    cursor: pointer;
    padding: 0 5px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: #f0f0f0;
}

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

.calendar-table th {
    color: #8e8e93;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 0;
}

.calendar-table td {
    padding: 8px;
    text-align: center;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.calendar-table td:hover {
    background: #f0f0f0;
}

.calendar-table td:active {
    background: #e0e0e0;
}

.calendar-table td:empty {
    cursor: default;
    background: none;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    background: #f8f9fa;
    font-weight: 500;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-responsive {
    overflow-x: auto;
}

.badge {
    font-size: 14px;
    padding: 5px 10px;
}

.list-group-item {
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.select2-container {
    width: 100% !important;
    margin-bottom: 10px;
}

.comment-bubble {
    display: inline-block;
    background-color: #ff5733;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.fc-daygrid-day-events {
    overflow: hidden;
    max-height: 150px;
}

.fc-event-title {
    white-space: normal !important;
    line-height: 1.2;
    font-size: 12px;
    padding: 2px;
    word-wrap: break-word;
}

.fc-event {
    margin: 2px 0;
    background: #fff;
    border: 1px solid #000;
}

.fc-daygrid-day-frame {
    height: auto !important;
}

.fc-daygrid-day-number {
    font-size: 16px;
}

tr.deleted td {
    text-decoration: line-through;
    color: #dc3545;
}

/* Flatpickr Styles for Calendar */
#calendar {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.flatpickr-calendar {
    width: 100% !important;
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.flatpickr-day {
    height: 80px;
    line-height: 20px;
    font-size: 16px;
    border: 1px solid #dee2e6;
    padding: 5px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.flatpickr-day.has-event {
    background-color: #fff3cd; /* Жолта боја */
    border: 2px solid #ffc107;
}

.flatpickr-day.has-event:hover {
    background-color: #ffe69c;
}

.flatpickr-day.today {
    border: 2px solid #28a745;
    background-color: #e9ecef;
}

.flatpickr-day.has-event .event-count {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.flatpickr-monthDropdown-months, .flatpickr-year {
    font-size: 18px;
    font-weight: 500;
}

.flatpickr-weekday {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 500;
}

.flatpickr-prev-month, .flatpickr-next-month {
    background: linear-gradient(135deg, #bb890b, #d4a017);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    background: linear-gradient(135deg, #61490c, #d4a017);
}

.modal-content {
    border-radius: 8px;
}

.modal-body {
    font-size: 14px;
    line-height: 1.6;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: #bb890b !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #b688009e!important;
    color: white;
}

/* Responsive design for Flatpickr Calendar */
@media (max-width: 1024px) {
    .flatpickr-calendar {
        max-width: 800px;
    }
    .flatpickr-day {
        height: 70px;
        font-size: 14px;
    }
    .flatpickr-day .event-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    .flatpickr-day {
        height: 60px;
        font-size: 12px;
        padding: 3px;
    }
    .flatpickr-day .event-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    .flatpickr-monthDropdown-months, .flatpickr-year {
        font-size: 16px;
    }
    .flatpickr-weekday {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .flatpickr-day {
        height: 50px;
        padding: 2px;
    }
    .flatpickr-monthDropdown-months, .flatpickr-year {
        font-size: 14px;
    }
    .flatpickr-weekday {
        font-size: 10px;
    }
    .flatpickr-day .event-count {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

@media (max-width: 600px) {
    .calendar-container {
        max-width: 100%;
    }
    .calendar-dropdown {
        width: 90%;
        max-width: 280px;
    }
}