/* General Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    --light-color: #f5f7fa;
    --dark-color: #2c3e50;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    line-height: 1.6 !important;

}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

/* Profile Styles */
.profile-content {
    max-width: 1200px;
    margin: 0 auto;
}


.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.profile-avatar:hover .change-avatar-btn {
    opacity: 1;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.8rem;
}

.profile-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

/* Dashboard Styles - Latest Version */
.dashboard-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    padding: 0 24px;
    margin-bottom: 32px;
}

.h1,
.h2,
.h3,
h1,
h2,
h3 {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

.sidebar-header h2 {
    font-size: 24px;
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    transform: translateX(5px);
}

.nav-links li.active a {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    border-left: 4px solid #3498db;
}

.nav-links i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.1);
}

.logout {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logout a {
    color: #e74c3c;
}

.logout a:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
    color: #e74c3c;
}

/* Main content styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
    width: calc(100% - 280px);
    max-width: 100%;
    box-sizing: border-box;
    background: white;
}

/* Globalne style dla content-header */
.main-content > .content-header,
body .dashboard-container .main-content > .content-header,
body main > .content-header,
div.content-header,
.content-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 20px 24px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    position: relative !important;
    z-index: 15 !important;
}

.content-header h1 {
    margin: 0 !important;
    color: #2c3e50 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    background: linear-gradient(45deg, #2c3e50, #3498db) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.user-info {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.user-info i {
    font-size: 28px;
    color: #3498db;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard content styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-card.full-width,
.calendar-card {
    grid-column: 1 / -1;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Appointments and Results list styles */
.appointment-item,
.result-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    transition: background-color 0.3s ease;
    gap: 24px;
}

.appointment-item:hover,
.result-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.appointment-item:last-child,
.result-item:last-child {
    border-bottom: none;
}

.appointment-date,
.result-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    min-width: 140px;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    text-align: center;
}

.appointment-date i,
.result-date i {
    font-size: 18px;
    color: #3498db;
}

.appointment-info,
.result-info {
    flex: 1;
    padding-right: 16px;
}
h4{
    font-weight: bold;
        display: block;
            margin-block-start: 1.33em;
            margin-block-end: 1.33em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
            unicode-bidi: isolate;
}
.appointment-info h4,
.result-info h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
}

.appointment-info p,
.result-info p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Patient Selector Styles */
.patient-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(200, 230, 201, 0.7);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-top: 12px;
}

.patient-selector:hover {
    background: rgba(200, 230, 201, 0.9);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.patient-selector i {
    color: #4caf50;
    font-size: 20px;
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.patient-details {
    color: #3e7d41;
    font-size: 12px;
}

.patient-selector .change-icon {
    margin-left: 10px;
    color: #4caf50;
    font-size: 16px;
}

/* Patient Modal Styles */
.patient-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.patient-modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.95);
}

.patient-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.patient-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

.patient-modal-close {
    color: #7f8c8d;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.patient-modal-close:hover {
    color: #e74c3c;
}

.patient-list {
    max-height: 300px;
    overflow-y: auto;
}

.patient-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.patient-list-item:hover {
    background: rgba(200, 230, 201, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.1);
}

.patient-list-item.active {
    background: rgba(200, 230, 201, 0.4);
    border-color: rgba(76, 175, 80, 0.4);
}

.patient-list-item i {
    color: #4caf50;
    font-size: 18px;
    margin-right: 12px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}


/* User Profile Styles */
.profile-content {
    position: relative;
    z-index: 1;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Profile header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.change-avatar-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.profile-info h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    display: block;
    margin-block-start: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.profile-info .pesel {
    color: #6c757d;
    font-size: 14px;
}

/* Form sections */
.form-section {
    margin-bottom: 32px;
    position: relative;
    z-index: 3;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    z-index: 4;
}

.form-group {
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

/* Input fields with icons */
.input-icon-wrapper {
    position: relative;
    z-index: 6;
}

.input-icon-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 16px;
    pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select,
.input-icon-wrapper textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    color: #2c3e50;
}

/* Special styles for date and select fields */
.input-icon-wrapper.date-field input,
.input-icon-wrapper.select-field select {
    padding-left: 40px;
}

.input-icon-wrapper.date-field i,
.input-icon-wrapper.select-field i {
    left: 12px;
}

/* Fix for date input calendar icon */
.input-icon-wrapper.date-field input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: 30px;
    margin-right: 5px;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus,
.input-icon-wrapper textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-icon-wrapper input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Textarea specific styles */
.input-wrapper {
    position: relative;
    z-index: 6;
}

.input-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    color: #2c3e50;
    min-height: 100px;
    resize: vertical;
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-primary {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-content {
        padding: 10px;
    }

    .profile-card {
        padding: 15px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        margin: 0 auto;
    }

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

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

@media (max-width: 480px) {
    .profile-card {
        padding: 16px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .change-avatar-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

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

    .input-icon-wrapper input,
    .input-icon-wrapper select {
        font-size: 14px;
    }
}

/* Header Styles */
.profile-header {
    margin-bottom: 40px;
    position: relative;
}



.profile-header p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-title {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 500;
}

.required-legend {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.required-legend i {
    margin-right: 8px;
    color: #dc3545;
}

button[type="submit"] {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

button[type="submit"] i {
    margin-right: 8px;
}

.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
        font-size: 16px;
}

.nav-links a:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    transform: translateX(5px);
}

.nav-links li.active a {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    border-left: 4px solid #3498db;
}

.nav-links i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.1);
}

.logout {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links li.logout a {
    color: #e74c3c;
}



/* Patient Selector */
.patient-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.patient-selector:hover {
    background: #e9ecef;
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-weight: 500;
    color: #2c3e50;
}

.change-icon {
    color: #3498db;
    margin-left: 8px;
}

/* Patient Modal */
.patient-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

.patient-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.patient-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.patient-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.patient-modal-close {
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.patient-modal-close:hover {
    color: #dc3545;
}


.dashboard-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.nav-links {
    list-style: none;
    padding: 0;
}


.nav-links a:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    transform: translateX(5px);
}

.nav-links li.active a {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    border-left: 4px solid #3498db;
}

.nav-links i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.1);
}

.logout {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logout a {
    color: #e74c3c;
}

.logout a:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
    color: #e74c3c;
}


/* Style dla sekcji zalogowanego użytkownika */
.logged-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.logged-user:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.user-icon {
    color: #3498db;
    font-size: 22px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    font-size: 13px;
    color: #7f8c8d;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.user-info i {
    font-size: 28px;
    color: #3498db;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard content styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Karty na pełną szerokość */
.dashboard-card.full-width,
.calendar-card {
    grid-column: 1 / -1;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Appointments list styles */
.appointment-item,
.result-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    transition: background-color 0.3s ease;
    gap: 24px;
}

.appointment-item:hover,
.result-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.appointment-item:last-child,
.result-item:last-child {
    border-bottom: none;
}

.appointment-date,
.result-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    min-width: 140px;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    text-align: center;
}

.appointment-date i,
.result-date i {
    font-size: 18px;
    color: #3498db;
}

.appointment-info,
.result-info {
    flex: 1;
    padding-right: 16px;
}

.appointment-info h4,
.result-info h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
}

.appointment-info p,
.result-info p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Form styles */


.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 42px 12px 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Usuwamy domyślne ikony */
.form-group::before {
    display: none;
}


/* Zapewniamy miejsce na ikony na początku pola */
.form-group input:not([type="date"]),
.form-group select,
.form-group textarea {
    padding-left: 40px;
}

/* Dodatkowe style dla specyficznych typów pól */
.form-group input[type="date"] {
    padding-right: 10px;
}

/* Dodajemy style dla wrappera ikon, gdy są wewnątrz pola */
.input-icon-wrapper {
    position: relative;
}



.input-icon-wrapper input,
.input-icon-wrapper select {
    padding-left: 40px;
}

/* Responsive form styles */
@media (max-width: 768px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px 10px 36px;
        font-size: 13px;
    }

    .form-group i,
    .input-icon-wrapper i {
        left: 10px;
        font-size: 14px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        height: 85px !important;
        padding: 0;
        background: rgba(245, 248, 250, 0.9) !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        z-index: 100;
        border-top: none !important;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 110px 16px 80px 16px;
        position: relative;
        z-index: 5;
        box-sizing: border-box;
    }

    .content-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        margin-bottom: 15px;
        z-index: 1;
    }

    .user-info {
        width: 100%;
        align-items: center;
    }

    .logged-user {
        width: 100%;
        justify-content: center;
    }

    /* Dodatkowe style dla Profilu */
    .profile-content {
        padding: 10px;
        margin-top: 10px;
        position: relative;
        z-index: 0;
    }

    .profile-card {
        padding: 15px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        margin: 0 auto;
    }

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

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

    .form-actions {
        text-align: center;
        margin-bottom: 80px;
    }

    /* Zmniejszenie marginesu górnego pierwszej karty */
    .dashboard-grid {
        margin-top: 0;
    }

    .dashboard-grid>.dashboard-card:first-child {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
    }

    .logged-user {
        padding: 8px 12px;
    }

    .user-details {
        text-align: center;
    }

    .welcome-text,
    .user-name {
        font-size: 12px;
    }

    .dashboard-card {
        margin-bottom: 0;
    }

    .nav-links a span {
        font-size: 9px;
    }

    .nav-links i {
        font-size: 18px;
    }

    /* Dodatkowo dostosowujemy panel główny dla bardzo małych ekranów */
    .nav-links li:nth-child(1) {
        transform: translateY(-12px) !important;
    }

    .nav-links li:nth-child(1) a {
        height: 75px !important;
    }

    .nav-links li:nth-child(1) a i {
        margin-top: 27px !important;
        margin-bottom: 6px !important;
        font-size: 24px !important;
        color: #2ecc71 !important;
    }

    .nav-links li:nth-child(1) a span {
        font-size: 11px !important;
    }

    .appointment-item,
    .result-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .appointment-date,
    .result-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }

    .appointment-info,
    .result-info {
        padding-right: 0;
    }

    .mobile-logo span {
        display: none;
    }

    .mobile-header {
        padding: 0 12px;
    }

    .mobile-icon {
        font-size: 18px;
    }

    .mobile-header-right {
        gap: 14px;
    }

    .main-content {
        padding-top: 125px;
    }

    .dashboard-grid {
        gap: 16px;
    }

    .dashboard-card {
        margin-bottom: 0;
    }
}

/* Style dla selektora pacjenta w menu górnym */
.patient-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(200, 230, 201, 0.7);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-top: 12px;
}

.patient-selector:hover {
    background: rgba(200, 230, 201, 0.9);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.patient-selector i {
    color: #4caf50;
    font-size: 20px;
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.patient-details {
    color: #3e7d41;
    font-size: 12px;
}

.patient-selector .change-icon {
    margin-left: 10px;
    color: #4caf50;
    font-size: 16px;
}

/* Media query dla mobile */
@media (max-width: 768px) {
    .patient-selector {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* Style dla modalu wyboru pacjenta */
.patient-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.patient-modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.95);
}

.patient-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.patient-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

.patient-modal-close {
    color: #7f8c8d;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.patient-modal-close:hover {
    color: #e74c3c;
}

.patient-list {
    max-height: 300px;
    overflow-y: auto;
}

.patient-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.patient-list-item:hover {
    background: rgba(200, 230, 201, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.1);
}

.patient-list-item.active {
    background: rgba(200, 230, 201, 0.4);
    border-color: rgba(76, 175, 80, 0.4);
}

.patient-list-item i {
    color: #4caf50;
    font-size: 18px;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .patient-modal-content {
        width: 95%;
        padding: 15px;
    }

    .patient-list {
        max-height: 250px;
    }
}

/* Dodatkowe style zapobiegające nakładaniu się elementów */
.main-content>div:not(.content-header) {
    position: relative;
    z-index: 1;
}

/* Responsywność dla siatki dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* NOWY, UJEDNOLICONY WYGLĄD MENU MOBILNEGO */
/* Te style zastępują wszystkie poprzednie dla menu mobilnego */

@media (max-width: 768px) {
    body .dashboard-container .sidebar.mobile-menu-visible {
        all: initial !important;
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65px !important;
        background-color: white !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        transition: transform 0.3s ease !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .sidebar-header {
        display: none !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .nav-links {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li {
        display: block !important;
        flex: 1 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    /* Zmiana kolejności elementów - Panel na 3 pozycji */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li:nth-child(1) {
        order: 3 !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li:nth-child(2) {
        order: 1 !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li:nth-child(3) {
        order: 2 !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li:nth-child(4) {
        order: 4 !important;
    }

    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li:nth-child(5) {
        order: 5 !important;
    }

    /* Ujednolicony wygląd linków w menu */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 8px 0 !important;
        color: #95a5a6 !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        transition: all 0.2s ease !important;
    }

    /* Efekt hover dla linków - BEZ PRZESUNIĘCIA */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links a:hover {
        color: #3498db !important;
        transform: none !important;
        background: transparent !important;
    }

    /* Aktywny link - wszystkie elementy mają teraz taki sam styl wyróżnienia */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li.active a {
        color: #3498db !important;
        background: transparent !important;
        border: none !important;
        font-weight: bold !important;
    }

    /* Usunięcie podkreślenia dla aktywnego elementu menu */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li.active::after {
        display: none !important;
    }

    /* Ikony w menu */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links i {
        display: block !important;
        font-size: 22px !important;
        margin-bottom: 4px !important;
        color: inherit !important;
        text-align: center !important;
        margin-right: 0 !important;
        width: auto !important;
        transition: none !important;
    }

    /* Powiększenie ikony Panel o 15% i ustawienie jasnego zielonego koloru */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li:nth-child(1) i {
        font-size: 25.3px !important;
        /* 22px * 1.15 = 25.3px */
        color: #2ecc71 !important;
        /* Jasny zielony kolor */
    }

    /* Efekty hover dla ikon - BEZ PRZESUNIĘCIA */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links a:hover i {
        transform: none !important;
    }

    /* Etykiety pod ikonami */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links a span {
        display: block !important;
        font-size: 10px !important;
        text-align: center !important;
        color: inherit !important;
        white-space: nowrap !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }

    /* Usunięto specjalne wyróżnienie dla przycisku "Umów wizytę", aby miał taką samą kolorystykę jak "Historia" */
    /* Obie ikony mają teraz domyślny szary kolor (#95a5a6) z menu mobilnego */

    /* Rozjaśniony czerwony kolor dla ikony wyloguj */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li.logout a {
        color: #ff6b6b !important;
        /* Rozjaśniony czerwony kolor */
    }

    /* Przyciemniony czerwony po najechaniu */
    body .dashboard-container .sidebar.mobile-menu-visible .nav-links li.logout a:hover {
        color: #ff5252 !important;
        /* Lekko przyciemniony, ale wciąż jasny */
    }

    /* Dostosowanie kontenera głównego */
    body .dashboard-container .sidebar.mobile-menu-visible .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 80px !important;
    }
}

/* Style dla slidera wyników badań */
.results-slider-card {
    padding: 0;
    overflow: hidden;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.slider-header h3 {
    margin: 0;
}

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

.slider-nav-btn {
    background: none;
    border: none;
    color: #1976d2;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-nav-btn:hover {
    background-color: rgba(25, 118, 210, 0.1);
}

.slider-indicators {
    display: flex;
    gap: 5px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #1976d2;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-card {
    min-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-card.active {
    display: flex;
    opacity: 1;
}

.result-big-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.result-big-icon i {
    font-size: 40px;
    color: #1976d2;
    background-color: rgba(25, 118, 210, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.result-date {
    color: #666;
    font-size: 14px;
}

.result-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px;
    border-radius: 8px;
    font-weight: 500;
}

.result-status.normal {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.result-status.attention {
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.result-details {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-name {
    color: #666;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.detail-value.attention {
    color: #FF9800;
}

.result-link {
    display: inline-block;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s;
}

.result-link:hover {
    color: #0d47a1;
}

.result-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* Responsywność slidera */
@media (max-width: 768px) {
    .slider-header {
        padding: 12px 15px;
    }

    .slider-card {
        padding: 15px;
    }

    .result-big-icon i {
        font-size: 30px;
        width: 60px;
        height: 60px;
    }
}

/* Style dla mobilnego nagłówka */
.mobile-header,
.mobile-patient-selector {
    display: none;
}

@media (max-width: 768px) {

    /* Pokazujemy nagłówek mobilny */
    body {
        padding-top: 45px;
        /* Dodajemy padding, aby uwzględnić stały nagłówek */
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        padding: 0 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.98);
        height: 45px;
        /* Ustalam stałą wysokość */
    }

    .mobile-header-left {
        display: flex;
        align-items: center;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-logo i {
        font-size: 24px;
        color: #3498db;
    }

    .mobile-logo span {
        font-weight: 600;
        font-size: 16px;
        background: linear-gradient(45deg, #2c3e50, #3498db);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: none;
    }

    .mobile-header-right {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .mobile-icon {
        font-size: 20px;
        color: #7f8c8d;
        position: relative;
    }

    .mobile-icon i {
        transition: color 0.3s;
    }

    .mobile-icon:hover i {
        color: #3498db;
    }

    /* Mobile patient selector */
    .mobile-patient-selector {
        display: block;
        position: fixed;
        top: 45px;
        /* Ustawiamy tuż pod nagłówkiem */
        left: 0;
        width: 100%;
        padding: 6px 16px;
        margin: 0;
        z-index: 991;
        /* Zwiększamy z-index */
        background: #f5f7fa;
        /* Dodajemy tło */
        box-sizing: border-box;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .patient-selector.mobile-view {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 8px 12px;
        background: rgba(200, 230, 201, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    /* Pierwsza karta z wynikami badań - dostosowania */
    .results-slider-card {
        margin-top: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Ukrywamy standardowy nagłówek w widoku mobilnym */
    .content-header {
        display: none;
    }

    /* Dostosowanie głównego kontenera z większym odstępem */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 130px;
        /* Zwiększona wartość, aby uwzględnić nagłówek i selektor pacjenta */
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 80px;
        position: relative;
        z-index: 5;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .mobile-logo span {
        display: none;
    }

    .mobile-header {
        padding: 0 12px;
    }

    .mobile-icon {
        font-size: 18px;
    }

    .mobile-header-right {
        gap: 14px;
    }

    .main-content {
        padding-top: 125px;
        /* Dostosowana wartość dla mniejszych ekranów */
    }

    /* Zmniejszamy marginesy górne dla pierwszej karty */
    .dashboard-grid>.dashboard-card:first-child {
        margin-top: 0;
    }
}

/* Dostosowanie głównego kontenera */
.main-content {
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 110px;
        padding-bottom: 80px;
    }
}

/* Zmniejszenie marginesu górnego pierwszej karty */
.dashboard-grid {
    margin-top: 0;
}

.dashboard-grid>.dashboard-card:first-child {
    margin-top: 0;
}

/* Style dla mobilnego nagłówka i selektora pacjenta */
.mobile-header,
.mobile-patient-selector {
    display: none;
}

/* Upewnijmy się, że w wersji standardowej nie ma dodatkowego paddingu */
body {
    padding-top: 0;
}

/* Ustalam spójne odstępy między panelami */
.dashboard-grid {
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    margin-bottom: 0;
}

/* Globalne ustawienia dla wszystkich kontenerów formularzy */
@media (max-width: 768px) {

    /* Wszystkie kontenery formularzy */
    .appointment-form-card,
    .appointments-list-card,
    .document-card,
    .filters-card,
    .dashboard-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    /* Wszystkie formularze */
    form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Wszystkie grupy formularzy */
    .form-group,
    .filter-group {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Wszystkie przyciski formularzy */
    .btn-primary,
    .btn-secondary,
    .nav-btn,
    button[type="submit"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 14px !important;
    }

    /* Dodajemy padding do body, aby uwzględnić stały nagłówek */
    body {
        padding-top: 45px;
    }

    /* Główna zawartość - ujednolicony padding */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 110px 16px 80px 16px !important;
        box-sizing: border-box;
    }

    /* Odstępy między panelami w wersji mobilnej */
    .dashboard-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    /* Mobilny nagłówek */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        padding: 0 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-sizing: border-box;
        height: 45px;
    }

    .mobile-header-left {
        display: flex;
        align-items: center;
    }



    .mobile-header-right {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .mobile-icon {
        font-size: 20px;
        color: #7f8c8d;
        position: relative;
    }

    .mobile-icon i {
        transition: color 0.3s;
    }

    .mobile-icon:hover i {
        color: #3498db;
    }

    /* Selektor pacjenta w wersji mobilnej */
    .mobile-patient-selector {
        display: block;
        position: fixed;
        top: 45px;
        left: 0;
        width: 100%;
        padding: 6px 16px;
        margin: 0;
        z-index: 991;
        background: #f5f7fa;
        box-sizing: border-box;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .patient-selector.mobile-view {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 8px 12px;
        background: rgba(200, 230, 201, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }


}

/* Dostosowania dla mniejszych ekranów */
@media (max-width: 480px) {
    .mobile-logo span {
        display: none;
    }

    .mobile-header {
        padding: 0 12px;
    }

    .mobile-icon {
        font-size: 18px;
    }

    .mobile-header-right {
        gap: 14px;
    }

    /* Mniejsze odstępy na małych ekranach */
    .main-content {
        padding-top: 125px !important;
    }

    .dashboard-grid {
        gap: 16px;
    }
}

/* Style dla kalendarza */
.calendar-card {
    grid-column: 1 / -1;
    margin-top: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.calendar-title-wrapper {
    margin-bottom: 15px;
    text-align: center;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    background: rgba(52, 152, 219, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3498db;
}

.calendar-nav-btn:hover {
    background: rgba(52, 152, 219, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    border-radius: 4px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 500;
    color: #7f8c8d;
    padding: 6px;
    font-size: 14px;
}

.calendar-day {
    background: white;
    text-align: center;
    padding: 6px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day-number {
    font-weight: 400;
    font-size: 14px;
}

.calendar-day.inactive {
    opacity: 0.4;
    color: #bdc3c7;
}

.calendar-day.today {
    background: #e3f2fd;
    font-weight: bold;
    color: #3498db;
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498db;
}

.calendar-day.has-event.important::after {
    background: #e74c3c;
}

/* Legenda kalendarza */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-text {
    color: #7f8c8d;
}

/* Responsywność */
@media (max-width: 768px) {
    .calendar-weekday {
        font-size: 12px;
        padding: 5px;
    }

    .calendar-day {
        height: 35px;
    }

    .calendar-day-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .calendar-weekday {
        font-size: 11px;
        padding: 4px;
    }

    .calendar-day {
        height: 30px;
        padding: 2px;
    }

    .calendar-day-number {
        font-size: 11px;
    }

    .calendar-legend {
        flex-wrap: wrap;
    }
}

.medical-history-content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233498db' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: calc(100vh - 64px);
}

/* Filtry */
.filters-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    padding-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(52, 152, 219, 0.1);
    margin-bottom: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filters-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0));
    border-radius: 0 0 0 100%;
    pointer-events: none;
}

.filters-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0), rgba(52, 152, 219, 0.05));
    border-radius: 0 100% 0 0;
    pointer-events: none;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
}

.filters-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clear-filters {
    background: none;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 140px;
    justify-content: center;
}

.clear-filters:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #3498db;
    font-size: 16px;
    min-width: 16px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    color: #2c3e50;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    box-sizing: border-box;
}

/* Dla pól daty - nie chcemy strzałki z prawej strony */
.form-group input[type="date"] {
    background-image: none;
    padding-right: 16px;
    padding-left: 16px;
}

/* Ikony wewnątrz pól formularza */
.form-group .input-icon-wrapper {
    position: relative;
}


.form-group .input-icon-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 16px;
    pointer-events: none;
    z-index: 10;
}

.form-group .input-icon-wrapper input,
.form-group .input-icon-wrapper select {
    padding-left: 40px;
}

.form-group select:hover,
.form-group input:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group select option {
    padding: 12px;
    font-size: 15px;
}

.date-range-inputs {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 16px;
}

/* Animacje dla filtrów */
@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-card {
    animation: filterFadeIn 0.5s ease-out;
}

.form-group {
    animation: filterFadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive design dla filtrów */
@media (max-width: 768px) {
    .filters-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .filters-header {
        margin-bottom: 20px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .date-range-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group select,
    .form-group input {
        font-size: 14px;
        padding: 10px 36px 10px 14px;
    }

    .form-group .input-icon-wrapper i {
        left: 10px;
        font-size: 14px;
    }

    .form-group .input-icon-wrapper input,
    .form-group .input-icon-wrapper select {
        padding-left: 34px;
    }
}

/* Lista dokumentów */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.document-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.document-card:hover::before {
    opacity: 1;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.document-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.document-type i {
    font-size: 18px;
    color: #007bff;
}

.document-date {
    color: #6c757d;
    font-size: 14px;
}

.document-content h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 8px;
}

.doctor {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
}

.document-details {
    color: #2c3e50;
    font-size: 14px;
}

.document-details p {
    margin-bottom: 8px;
}

.document-details ul {
    margin: 8px 0;
    padding-left: 20px;
}

.document-details li {
    margin-bottom: 4px;
}

.document-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Responsive design */
@media (max-width: 768px) {
    .medical-history-content {
        padding: 16px;
    }

    .filters-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .filters-header {
        margin-bottom: 16px;
    }

    .filters-header h3 {
        font-size: 16px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .date-range-inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .document-card {
        padding: 16px;
    }

    .document-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .document-content h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .document-details {
        font-size: 13px;
    }

    .document-footer {
        margin-top: 16px;
        padding-top: 16px;
        flex-direction: column;
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .filters-header {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    .clear-filters {
        width: auto;
        min-width: 120px;
        text-align: center;
    }

    .document-type {
        font-size: 14px;
    }

    .document-date {
        font-size: 12px;
    }
}

/* Koniec pliku - ostatni styl to document-date i jego modyfikacja dla małych ekranów */

.appointments-content {}

.appointments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Formularz umawiania wizyty */
.appointment-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appointment-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.appointment-form-card h3 {
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    background-image: none;
}

.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
    border-color: #3498db;
}

.form-group select option {
    padding: 12px;
}

.form-group .date-time-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 18px;
}

/* Lista wizyt */
.appointments-list-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.appointments-list-card h3 {
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.appointment-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: white;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.appointment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
}

.appointment-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    padding: 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    color: #3498db;
    font-weight: 500;
}

.appointment-date i {
    font-size: 20px;
}

.appointment-info {
    flex: 1;
    padding: 0 20px;
}

.appointment-info h4 {
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 500;
}

.appointment-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.appointment-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-confirmed {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.status-pending {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

/* Responsive design */
@media (max-width: 1024px) {
    .appointments-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .appointments-content {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .appointments-grid {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        gap: 16px;
    }

    .appointment-form-card,
    .appointments-list-card {
        padding: 16px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .form-steps {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .form-group .date-time-container {
        grid-template-columns: 1fr;
    }

    .appointment-item {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .appointment-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }

    .appointment-info {
        padding: 0;
    }

    .appointment-status {
        margin-top: 12px;
    }

    /* Poprawione style dla sidebara mobilnego - z wyższą specyficznością */
    body .dashboard-container .sidebar {
        width: 100% !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 85px !important;
        padding: 0 !important;
        background: white !important;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
        /* Wyższy z-index, aby był na wierzchu */
        display: block !important;
        /* Wymuszenie wyświetlania */
        overflow: visible !important;
    }

    /* Ukrywamy nagłówek sidebara z wyższą specyficznością */
    body .dashboard-container .sidebar .sidebar-header {
        display: none !important;
    }

    /* Poprawione style dla linków nawigacyjnych */
    body .dashboard-container .sidebar .nav-links {
        display: flex !important;
        justify-content: space-around !important;
        margin: 0 !important;
        height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Właściwe wyświetlanie elementów menu */
    body .dashboard-container .sidebar .nav-links li {
        display: flex !important;
        flex: 1 !important;
        margin: 0 !important;
    }

    body .dashboard-container .sidebar .nav-links li a {
        width: 100% !important;
        padding: 10px 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Dostosowanie dla kontenera głównego */
    body .dashboard-container .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 100px !important;
    }

    /* Początkowe style dla wersji mobilnej */

    /* Styles dla przycisków nawigacji */
    .form-navigation {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 0;
        flex: 1;
        justify-content: center;
        box-sizing: border-box;
    }

    .prev-btn {
        max-width: 40%;
    }

    .next-btn {
        max-width: 60%;
    }

    .submit-btn {
        width: 100%;
        box-sizing: border-box;
    }

    /* Dostosowania dla umówionych wizyt */
    .appointment-item,
    .result-item {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        padding: 15px 10px;
    }

    .appointment-date,
    .result-date {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: auto;
        padding: 8px;
    }

    .appointment-info,
    .result-info {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    /* Status wizyt */
    .appointment-status {
        margin: 5px auto;
        display: inline-block;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appointment-form-card,
.appointments-list-card {
    animation: fadeIn 0.5s ease-out;
}

.appointment-item {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.appointment-item:nth-child(1) {
    animation-delay: 0.1s;
}

.appointment-item:nth-child(2) {
    animation-delay: 0.2s;
}

.appointment-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Formularz etapowy */
.form-steps {
    position: relative;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 40px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 14px;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    transform: scale(1.1);
}

.step.active .step-text {
    color: #3498db;
    font-weight: 500;
}

.step.completed .step-number {
    background: #2ecc71;
    color: white;
}

.step.completed .step-text {
    color: #2ecc71;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.form-step.active {
    display: block;
}

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.available-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #bdc3c7;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prev-btn {
    background: #f5f5f5;
    color: #7f8c8d;
}

.next-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.appointment-summary {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.appointment-summary h4 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    color: #7f8c8d;
    font-weight: 500;
}

.summary-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive design dla formularza etapowego */
@media (max-width: 768px) {
    .step-indicator {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .step {
        padding: 0 5px;
    }

    .step-text {
        font-size: 11px;
        max-width: 70px;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .date-range {
        grid-template-columns: 1fr;
    }

    /* Dostępne terminy */
    .available-slots {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 8px !important;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .time-slot {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box;
        padding: 8px 5px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    .form-filters {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .filter-group {
        width: 100%;
        box-sizing: border-box;
    }

    .form-navigation {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        display: flex;
        justify-content: space-between;
    }

    /* Dostosowanie dla elementów formularza */
    select,
    input,
    textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Dostosowanie dla podsumowania */
    .appointment-summary {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }
}

/* Style dla modali */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-button.primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.modal-button.secondary {
    background: #f5f5f5;
    color: #7f8c8d;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.modal-close i {
    color: #7f8c8d;
    font-size: 18px;
}

/* Animacje dla modali */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay.closing {
    animation: modalFadeOut 0.3s ease-out;
}

/* Responsive design dla modali */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 24px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-content {
        font-size: 14px;
    }

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

    .modal-button {
        width: 100%;
        justify-content: center;
    }
}

/* Style dla filtrów */
.form-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: #3498db;
    font-size: 16px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    color: #2c3e50;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.filter-group select:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.filter-group select option {
    padding: 12px;
    font-size: 15px;
}

.filter-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.filter-group::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-group:focus-within::after {
    opacity: 1;
}

/* Responsive design dla filtrów */
@media (max-width: 768px) {
    .form-filters {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .filter-group select {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* Animacje dla filtrów */
@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-filters {
    animation: filterFadeIn 0.5s ease-out;
}

.filter-group {
    animation: filterFadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.filter-group:nth-child(1) {
    animation-delay: 0.1s;
}

.filter-group:nth-child(2) {
    animation-delay: 0.2s;
}

.filter-group:nth-child(3) {
    animation-delay: 0.3s;
}

.filter-group:nth-child(4) {
    animation-delay: 0.4s;
}


.form-group input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-group input[type="date"]:hover {
    border-color: #3498db;
}

/* Styl kalendarza dla Chrome/Safari/Edge */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: #e9ecef;
}

/* Specjalne styles dla Firefox */
@-moz-document url-prefix() {
    .form-group input[type="date"] {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Dodatkowe styles dla dostępności */
.form-group label[for*="date"] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.form-group label[for*="date"] i {
    color: #3498db;
}

/* Wsparcie dla ciemnego motywu przeglądarki */
@media (prefers-color-scheme: dark) {
    .form-group input[type="date"] {
        background-color: white;
        color: #2c3e50;
    }

    .form-group input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(0);
        background-color: #f8f9fa;
    }
}

/* Style dla kontenerów wyboru daty */
.form-filters .filter-group input[type="date"] {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    color: #2c3e50;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.form-filters .filter-group input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-filters .filter-group input[type="date"]:hover {
    border-color: #3498db;
}

.form-filters .filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: absolute;
    right: 10px;
}

.form-filters .filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: #e9ecef;
}

.form-filters .filter-group label i {
    color: #3498db;
    margin-right: 8px;
}

/* Poprawka dla etapu wyboru daty */
.form-step[data-step="3"] .form-filters {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(52, 152, 219, 0.1);
    margin-bottom: 24px;
}

/* Style dla zapewnienia widoczności menu mobilnego */
.mobile-menu-visible {
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-menu-visible {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 85px !important;
        z-index: 9999 !important;
        background: white !important;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1) !important;
        display: block !important;
    }
}

/* Koniec pliku */

/* Ukrycie content-header w widoku mobilnym */
@media (max-width: 768px) {
    body .dashboard-container .content-header,
    body .content-header,
    body main .content-header,
    .content-header,
    div.content-header {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

.date-to-disabled {
  background: #f8f9fa !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  color: #b0b0b0 !important;
}

/* Ukryj wskaźnik kalendarza na mobile */
.date-to-disabled::-webkit-calendar-picker-indicator {
  display: none;
}
.date-to-disabled::-webkit-input-placeholder { color: #b0b0b0; }
.date-to-disabled::-moz-placeholder { color: #b0b0b0; }
.date-to-disabled:-ms-input-placeholder { color: #b0b0b0; }
.date-to-disabled::placeholder { color: #b0b0b0; }

@media (pointer: coarse) {
  .date-to-disabled {
    touch-action: none;
  }
}