/* Modern Professional Design for HelpMedic */

/* CSS Variables for Easy Theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --success-color: #10b981;
    --dark-bg: #1f2937;
    --darker-bg: #111827;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Mobile optimizations */
html {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    -webkit-text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .sidebar {
        padding-left: max(0px, env(safe-area-inset-left));
    }

    .mobile-menu-toggle {
        left: max(15px, calc(15px + env(safe-area-inset-left)));
    }

    .main-content {
        padding-left: max(30px, calc(30px + env(safe-area-inset-left)));
        padding-right: max(30px, calc(30px + env(safe-area-inset-right)));
        padding-bottom: max(30px, calc(30px + env(safe-area-inset-bottom)));
    }

    @media (max-width: 768px) {
        .main-content {
            padding-left: max(15px, calc(15px + env(safe-area-inset-left)));
            padding-right: max(15px, calc(15px + env(safe-area-inset-right)));
            padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
        }
    }

    @media (max-width: 480px) {
        .main-content {
            padding-left: max(12px, calc(12px + env(safe-area-inset-left)));
            padding-right: max(12px, calc(12px + env(safe-area-inset-right)));
            padding-bottom: max(15px, calc(15px + env(safe-area-inset-bottom)));
        }
    }
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark-bg);
    padding: 0;
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand h1 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.sidebar-menu a.active {
    background: rgba(37, 99, 235, 0.15);
    color: white;
    border-left-color: var(--primary-color);
}

.sidebar-menu-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
}

.sidebar-user-details {
    flex: 1;
}

.sidebar-user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.sidebar-user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.sidebar-logout {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Main Content Area */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--light-bg);
}

.main-header {
    background: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.main-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.main-content {
    padding: 30px;
}

/* Smooth scrolling for better mobile UX */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hide outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-color);
    margin-left: 0;
    padding: 20px;
}


.login-container {
    width: 100%;
    max-width: 460px;
}

.login-box {
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.logo-icon-large {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.login-box h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 28px;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.login-form {
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login-divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.demo-account:hover {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.demo-account-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.demo-account-content {
    flex: 1;
}

.demo-account-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.demo-credentials {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.demo-credentials code {
    background-color: white;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

.demo-credentials span {
    color: var(--text-secondary);
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert svg {
    flex-shrink: 0;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--secondary-color);
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: var(--danger-color);
    color: #991b1b;
}

/* Forms */
.form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

form > .card {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group label svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-link svg {
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Sticky Form Actions */
.form-actions-sticky {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.form-actions-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: #4b5563;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--border-color);
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

.page-header h1 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.page-header .actions {
    display: flex;
    gap: 10px;
}

/* Tables */
.table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: #f3f4f6;
    border-bottom: 2px solid var(--border-color);
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

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

.table td {
    color: var(--text-primary);
    vertical-align: middle;
}

.table .btn-sm {
    white-space: nowrap;
}

/* Search and Filters */
.search-box,
.filters-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.search-box form,
.filters-box form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.search-box input,
.filters-box input,
.filters-box select {
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input {
    flex: 1;
    min-width: 250px;
}

.search-box input:focus,
.filters-box input:focus,
.filters-box select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-zakazano {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-potvrdjeno {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-odrzano {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-otkazano {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-prebaceno {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-izdata {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-placena {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-stornirana {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-sent {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-queued {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-neposlato {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-uspeh {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-greska {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stat-link:hover {
    text-decoration: underline;
}

/* Detail Tables */
.detail-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

.detail-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.detail-section h3 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.detail-table {
    width: 100%;
}

.detail-table th {
    padding: 12px 0;
    text-align: left;
    width: 200px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
}

.detail-table td {
    padding: 12px 0;
    color: var(--text-primary);
}

.detail-table tr {
    border-bottom: 1px solid var(--border-color);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    :root {
        --sidebar-width: 220px;
    }

    .main-wrapper {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .main-content {
        padding: 80px 15px 20px 15px;
        position: relative;
        z-index: 1;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 10px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .btn-sm {
        min-height: 40px;
        padding: 10px 16px;
    }

    .sidebar-menu a {
        min-height: 48px;
        padding: 16px 20px;
    }

    /* Improved table handling for mobile */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .table {
        min-width: 800px;
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 12px 10px;
        white-space: nowrap;
    }

    /* Better form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .search-box input,
    .filters-box input,
    .filters-box select {
        min-height: 44px;
        font-size: 16px;
    }

    /* Better search and filter layouts */
    .search-box form,
    .filters-box form {
        flex-direction: column;
    }

    .search-box input {
        min-width: 100%;
        width: 100%;
    }

    .filter-row {
        flex-direction: column;
        width: 100%;
    }

    .filter-row input,
    .filter-row select {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 70px 12px 15px 12px;
    }

    .card {
        padding: 16px 12px;
        border-radius: 8px;
    }

    .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-card h3 {
        font-size: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Login page mobile optimization */
    .login-box {
        padding: 30px 20px;
    }

    .login-box h1 {
        font-size: 24px;
    }

    .logo-icon-large {
        width: 60px;
        height: 60px;
    }

    .logo-icon-large svg {
        width: 36px;
        height: 36px;
    }

    .demo-account {
        padding: 12px;
        gap: 10px;
    }

    .demo-account-icon {
        width: 36px;
        height: 36px;
    }

    .demo-account-content h4 {
        font-size: 13px;
    }

    .demo-credentials {
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* Better badge sizing */
    .badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Improved page headers */
    .page-header h1 {
        font-size: 20px;
    }

    .page-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    /* Better card headers */
    .card-header h2 {
        font-size: 16px;
    }

    .card-header-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Table improvements */
    .table {
        font-size: 12px;
    }

    .table th {
        font-size: 11px;
    }

    /* Quick actions optimization */
    .quick-action-item {
        padding: 12px;
    }

    .quick-action-icon {
        width: 36px;
        height: 36px;
    }

    .quick-action-content h4 {
        font-size: 13px;
    }

    .quick-action-content p {
        font-size: 11px;
    }

    /* Detail section improvements */
    .detail-section {
        padding: 20px 15px;
    }

    .detail-table th {
        width: 120px;
        font-size: 12px;
    }

    .detail-table td {
        font-size: 13px;
    }

    /* Mobile-first approach for very small screens */
    .main-header {
        padding: 0 15px;
        height: 60px;
    }

    .main-header h1 {
        font-size: 18px;
    }

    /* Better mobile menu toggle positioning */
    .mobile-menu-toggle {
        top: 12px;
        left: 12px;
        width: 42px;
        height: 42px;
    }

    /* Improved calendar for very small screens */
    .calendar-time-slot {
        grid-template-columns: 55px 1fr;
        gap: 8px;
    }

    .time-slot-hour {
        font-size: 12px;
        padding: 8px 4px;
    }

    .appointment-card {
        padding: 12px;
    }

    .appointment-time {
        font-size: 14px;
    }

    .appointment-info-row {
        font-size: 12px;
    }

    .appointment-info-row svg {
        width: 14px;
        height: 14px;
    }

    /* Better spacing for forms */
    .form-group {
        margin-bottom: 18px;
    }

    .form-row {
        gap: 18px;
        margin-bottom: 18px;
    }

    /* Improved alert sizing */
    .alert {
        padding: 14px 16px;
        font-size: 13px;
    }

    /* Better empty state */
    .empty-state {
        padding: 40px 15px;
    }

    .empty-state svg {
        width: 40px;
        height: 40px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* Mobile utility classes */
@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }

    .mobile-show {
        display: block;
    }

    .mobile-text-center {
        text-align: center;
    }

    .mobile-full-width {
        width: 100%;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding: 70px 20px 15px 20px;
    }

    .sidebar {
        width: 240px;
    }

    .calendar-time-slot {
        grid-template-columns: 70px 1fr;
    }
}

/* Performance optimizations for animations */
.sidebar,
.mobile-overlay,
.mobile-menu-toggle,
.btn,
.card,
.stat-card {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support for mobile devices */
@media (prefers-color-scheme: dark) {
    .mobile-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Page Header */
.page-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Enhanced Stat Cards with Icons */
.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stat-card-success .stat-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card-info .stat-icon {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--info-color);
}

.stat-card-warning .stat-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-content .stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card-primary .stat-number {
    color: var(--primary-color);
}

.stat-card-success .stat-number {
    color: var(--success-color);
}

.stat-card-info .stat-number {
    color: var(--info-color);
}

.stat-card-warning .stat-number {
    color: var(--warning-color);
}

.stat-content .stat-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.stat-content .stat-link:hover {
    color: var(--text-primary);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    margin-top: 25px;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-sidebar {
    min-width: 0;
}

/* Enhanced Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 svg {
    color: var(--primary-color);
}

.card-header-badge {
    background-color: var(--light-bg);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Quick Actions List */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-action-item:hover {
    background-color: white;
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-icon-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.quick-action-icon-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.quick-action-icon-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.quick-action-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.quick-action-item > svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Time Badge */
.time-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--light-bg);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

/* Patient Cell */
.patient-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.patient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

/* SVG Icons */
.btn svg {
    flex-shrink: 0;
}

/* Calendar Navigation */
.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calendar-date-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.calendar-date-picker input[type="date"] {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background-color: white;
    cursor: pointer;
}

.calendar-date-picker input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calendar-current-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.calendar-current-date strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-current-date span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Calendar View */
.calendar-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-time-slot {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    min-height: 60px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.time-slot-hour {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-secondary);
    padding: 12px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.calendar-time-slot.has-appointment .time-slot-hour {
    background-color: var(--primary-color);
    color: white;
}

.time-slot-content {
    display: flex;
    align-items: stretch;
    padding: 4px 0;
}

.empty-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.empty-slot span {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

.appointment-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 16px;
    transition: all 0.3s ease;
}

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

.appointment-card.status-zakazano {
    border-left: 4px solid #f59e0b;
    background-color: #fffbeb;
}

.appointment-card.status-potvrdjeno {
    border-left: 4px solid #3b82f6;
    background-color: #eff6ff;
}

.appointment-card.status-odrzano {
    border-left: 4px solid #10b981;
    background-color: #f0fdf4;
}

.appointment-card.status-otkazano {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

.appointment-card.status-prebaceno {
    border-left: 4px solid #6b7280;
    background-color: #f9fafb;
}

.appointment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.appointment-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.appointment-card-body {
    margin-bottom: 12px;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointment-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.appointment-info-row svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.appointment-info-row strong {
    font-weight: 600;
    margin-right: 4px;
}

.appointment-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.appointment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.appointment-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.appointment-link svg {
    transition: transform 0.2s ease;
}

.appointment-link:hover svg {
    transform: translateX(2px);
}

/* Appointment View Grid */
.appointment-view-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    margin-top: 25px;
}

.appointment-view-main {
    min-width: 0;
}

.appointment-view-sidebar {
    min-width: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.info-card-icon-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.info-card-icon-info {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--info-color);
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-card-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Notes Section */
.notes-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.notes-header svg {
    color: var(--primary-color);
}

.notes-content {
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 8px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Person Card */
.person-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.person-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.person-avatar-doctor {
    background-color: var(--success-color);
}

.person-info {
    flex: 1;
}

.person-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

a.person-name:hover {
    color: var(--primary-color);
}

.person-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.person-contact svg {
    color: var(--primary-color);
}

/* Status Update Section */
.status-update-section {
    padding: 16px 0;
}

.current-status {
    text-align: center;
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 16px;
}

.current-status .badge {
    font-size: 14px;
    padding: 8px 16px;
}

.status-update-form {
    margin: 0;
}

.status-update-form .form-group {
    margin-bottom: 16px;
}

/* SMS Logs List */
.sms-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sms-log-item {
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.sms-log-item:hover {
    background-color: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sms-log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.sms-log-recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.sms-log-recipient svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.sms-log-recipient strong {
    color: var(--text-primary);
    font-weight: 600;
}

.sms-log-type {
    color: var(--text-secondary);
    font-size: 13px;
}

.sms-log-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sms-log-time {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sms-log-message {
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Filters Card */
.filters-card {
    margin-bottom: 25px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.btn.active .dropdown-icon {
    transform: rotate(180deg);
}

.filters-form {
    margin: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filters-grid .form-group {
    margin-bottom: 0;
}

.filters-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* Date Cell */
.date-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.date-cell svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.table-actions .btn {
    padding: 8px 10px;
}

.table-actions .btn svg {
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 320px;
    }

    .appointment-view-grid {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .appointment-view-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
        min-height: 44px;
    }

    .dashboard-content {
        display: flex;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        order: 2;
        gap: 15px;
    }

    .dashboard-grid {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .dashboard-main {
        order: 1;
    }

    .dashboard-sidebar {
        order: 2;
    }

    .quick-actions-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-actions-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .form-actions-container .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Calendar mobile optimizations */
    .calendar-time-slot {
        grid-template-columns: 65px 1fr;
        gap: 10px;
        min-height: auto;
    }

    .time-slot-hour {
        font-size: 13px;
        padding: 10px 6px;
        min-height: 44px;
    }

    .appointment-card {
        padding: 14px;
    }

    .appointment-info-row {
        font-size: 13px;
    }

    .appointment-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .appointment-time {
        font-size: 15px;
    }

    .empty-slot {
        padding: 14px;
        font-size: 13px;
    }

    /* Info cards mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-card {
        padding: 14px;
    }

    .info-card-icon {
        width: 44px;
        height: 44px;
    }

    .info-card-value {
        font-size: 18px;
    }

    /* SMS logs mobile */
    .sms-log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sms-log-status {
        width: 100%;
        justify-content: space-between;
    }

    .sms-log-item {
        padding: 14px;
    }

    /* Filters mobile */
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-actions {
        flex-direction: column;
        gap: 10px;
    }

    .filters-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Table actions mobile */
    .table-actions {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .table-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    /* Calendar navigation mobile */
    .calendar-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .calendar-navigation .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .calendar-date-picker {
        width: 100%;
        order: -1;
    }

    .calendar-date-picker input[type="date"] {
        width: 100%;
        min-height: 44px;
    }

    /* Person card mobile */
    .person-card {
        padding: 12px 0;
    }

    .person-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .person-name {
        font-size: 15px;
    }

    .person-contact {
        font-size: 13px;
    }

    /* Form actions sticky mobile */
    .form-actions-sticky {
        padding: 15px 0;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}
