/*
    -- @gameripper665
    -- mObywatel 2.0
*/

:root {
    --primary-blue: #0056A4;
    --primary-blue-light: #0078D7;
    --dark-blue: #003C73;
    --light-blue: #E6F0F9;
    --very-light-blue: #F0F7FF;
    --medium-blue: #4D94DB;
    --red: #FF0000;
    --green: #28A745;
    --green-dark: #19803A;
    --teal: #17A2B8;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #555555;
    --medium-gray: #E0E0E0;
    --light-gray: #F5F5F5;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
    z-index: 1;
}

.app-container.active-screen {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.splash-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    overflow: hidden;
}

.splash-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: logoAnimation 1s ease-in-out forwards;
}

.splash-logo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@keyframes logoAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    height: 100%;
    position: relative;
    z-index: 0;
}

.login-top-section {
    display: flex;
    flex-direction: column;
}

.login-bottom-section {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.login-greeting {
    margin-top: 20px;
    margin-bottom: 25px;
}

.login-greeting h1 {
    font-size: 31px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.login-greeting p {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.login-top {
    display: flex;
    flex-direction: column;
}

.login-bottom {
    display: flex;
    flex-direction: column;
}

.login-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

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

.password-input-container {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid #ddd;
    height: 48px;
    position: relative;
}

.form-input {
    border: none;
    height: 100%;
    width: 100%;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
}

.form-input:focus {
    outline: none;
}

.toggle-password {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.forgot-password {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.forgot-password a {
    color: var(--primary-blue);
    font-size: 14px;
    text-decoration: none;
}

.error-message {
    color: var(--red);
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.login-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.login-option {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.option-qr-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 12px;
    margin-right: 12px;
}

.option-text {
    flex: 1;
}

.option-text h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.option-text p {
    font-size: 14px;
    color: #777;
    font-weight: 400;
}

.option-arrow {
    color: #aaa;
    font-size: 16px;
    margin-right: 5px;
}

.login-button {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.login-button:hover {
    background-color: var(--dark-blue);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    margin-bottom: 10px;
}

.coi-ministry-container {
    display: flex;
    align-items: flex-end;
}

.coi-logo {
    margin-right: 10px;
}

.coi-logo img {
    height: 30px;
    width: auto;
}

.ministry-logo {
    display: flex;
    flex-direction: column;
}

.ministry-text {
    font-size: 11px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
}

.red-underline {
    width: 65px;
    height: 2px;
    background-color: var(--red);
    margin-top: 2px;
}

.app-version {
    font-size: 12px;
    color: #777;
}

.app-header {
    background-color: var(--light-gray);
    border-bottom: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.app-logo {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.logo-container {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.app-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

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

.action-button {
    background-color: transparent;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1968c2;
    cursor: pointer;
}

.action-button:hover {
    opacity: 0.9;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
}

.app-content {
    padding: 15px;
    background-color: #f1f3f8;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px;
}

.user-info {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 15px;
    margin: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    margin-right: 15px;
    font-size: 40px;
    color: var(--primary-blue);
}

.user-details h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 14px;
    color: var(--dark-gray);
}

.section {
    margin-bottom: 20px;
    padding: 0 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    color: #2a2a2a;
}

.documents-section {
    overflow: hidden;
    padding: 10px 0;
}

.documents-row {
    display: flex;
    gap: 15px;
    padding: 5px 2.5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.documents-row::-webkit-scrollbar {
    display: none;
}

.document-card {
    background-color: var(--white);
    border-radius: 12px;
    min-width: 260px;
    height: 180px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background-size: cover;
    background-position: center;
    text-align: left;
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-2px);
}

.document-card:active {
    transform: scale(0.98);
}

.mdowod-card {
    background-image: url('assets/cards/mDowod.png');
}

.license-card {
    background-image: url('assets/cards/mPrawoJazdy.png');
}

.card-title {
    display: none;
}

.card-arrow {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: var(--dark-gray);
    font-size: 12px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.service-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-blue);
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.service-info p {
    font-size: 14px;
    color: var(--dark-gray);
}

.service-arrow {
    color: var(--dark-gray);
    font-size: 14px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--medium-gray);
    z-index: 10;
}

.hidden-nav {
    opacity: 0;
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--dark-gray);
    font-size: 11px;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item.active::after {
    display: none;
}

.id-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.back-button i {
    margin-right: 5px;
}

.id-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.info-button {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.id-card-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f5f5f5;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
}

.id-card-timestamp {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
    align-self: center;
}

.id-card-container {
    background: linear-gradient(135deg, #e6f0f9 0%, #c9e2f5 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 0 16px;
    background-image: url('assets/id-card-bg.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    min-height: 460px;
}

.id-card-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 15px;
}

.id-card-left {
    display: flex;
    flex-direction: column;
    margin-right: 14px;
}

.id-card-photo {
    width: 100px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.id-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.national-symbols {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 90px;
}

.polish-flag {
    width: 60px;
    height: 42px;
    overflow: hidden;
    border-radius: 6px;
}

.polish-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polish-emblem-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.polish-emblem {
    width: 38px;
    height: 38px;
    opacity: 1;
}

.emblem-text {
    font-size: 9px;
    color: #aaaaaa;
}

.id-card-details {
    flex: 1;
    position: relative;
    padding: 0;
}

.id-card-field {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 0;
    color: #000;
}

.field-value {
    display: block;
    font-size: 12px;
    color: #4a4a4a;
    font-weight: 400;
}

.id-card-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 16px;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
    font-weight: 500;
    font-size: 15px;
    border-radius: 0 0 16px 16px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: 0;
}

.id-card-status.valid {
    color: #4CAF50;
}

.id-card-status.invalid {
    color: #F44336;
}

.id-card-status.invalid .status-circle {
    border: 2px solid #F44336;
}

.id-card-status.invalid .status-circle i {
    color: #F44336;
}

.status-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    background-color: white;
}

.status-circle i {
    color: #4CAF50;
    font-size: 15px;
}

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

.card-action-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.action-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 17px;
    color: var(--primary-blue);
}

.doc-icon {
    color: var(--dark-gray);
}

.action-text {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.action-arrow {
    color: var(--dark-gray);
    font-size: 14px;
}

.additional-data-section {
    margin-top: 15px;
    margin-bottom: 20px;
}

.additional-data-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.additional-data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 5px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.additional-data-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px solid var(--medium-gray);
}

.additional-data-item:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.data-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: flex-end;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.modal.closing .modal-content {
    animation: slideDown 0.3s ease-in forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.id-card-preview {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.id-card-preview .id-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.id-card-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.id-card-info p {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border: none;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
}

.modal-action-btn i {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.modal-action-btn span {
    font-size: 14px;
    font-weight: 500;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeIn 0.3s, fadeOut 0.3s 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

#splashScreen {
    z-index: 1000;
}

#splashScreen.active-screen {
    pointer-events: none;
}

.document-details {
    padding: 10px 0;
}

.detail-item {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
}

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

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.category-tabs {
    display: flex;
    background-color: #f1f3f8;
    padding: 0 4px;
    justify-content: space-between;
    align-items: center;
}

.tab {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2a2a2a;
}

.tab.active {
    color: #000000;
}

.tab-space {
    flex-grow: 1;
}

.tab-buttons {
    display: flex;
    gap: 5px;
}

.tab-button {
    background-color: #d7e6f6;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1968c2;
    cursor: pointer;
}

.tab-button:hover {
    opacity: 0.9;
}

.services-section {
    padding-top: 5px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 5px;
}

.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
    text-align: center;
    position: relative;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin-bottom: 8px;
    font-size: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.service-icon i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
}

.blue-icon i {
    background-color: var(--primary-blue);
}

.blue-light-icon i {
    background-color: var(--medium-blue);
}

.green-icon i {
    background-color: var(--green);
}

.green-dark-icon i {
    background-color: var(--green-dark);
}

.red-icon i {
    background-color: var(--red);
}

.teal-icon i {
    background-color: var(--teal);
}

.service-name {
    font-size: 12px;
    color: var(--dark-gray);
    font-weight: 500;
    text-align: left;
    display: block;
    width: 100%;
    margin-top: 8px;
}

.section-divider {
    height: 8px;
    background-color: #f2f2f2;
    margin: 15px -15px;
}

.qr-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: var(--light-gray);
    height: 100%;
    overflow-y: auto;
}

.qr-description {
    margin-bottom: 15px;
}

.qr-description p {
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.qr-description h2 {
    margin-bottom: 18px;
}

.qr-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-option-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
}

.qr-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-color);
    background-color: var(--light-gray);
    border-radius: 12px;
    margin-right: 15px;
}

.qr-option-details {
    flex: 1;
}

.qr-option-details h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 3px;
}

.qr-option-details p {
    font-size: 13px;
    color: var(--dark-gray);
}

.qr-option-arrow {
    color: var(--dark-gray);
    font-size: 14px;
}

.header-title {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-color);
}

.header-title h2 {
    font-size: 18px;
    font-weight: 500;
}

.documents-content {
    display: flex;
    flex-direction: column;
    background-color: var(--light-gray);
    height: 100%;
    overflow-y: auto;
    padding: 0;
}

.search-container {
    padding: 15px;
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
}

.search-container h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #efefef;
    border-radius: 8px;
    padding: 8px 12px;
}

.search-icon {
    color: var(--dark-gray);
    font-size: 16px;
    margin-right: 10px;
}

.search-input {
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 12px;
    opacity: 0.7;
    width: 100%;
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
}

.documents-section {
    display: flex;
    flex-direction: column;
}

.documents-section-header {
    padding: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.documents-section-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.document-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 8px;
    padding: 15px;
    background-color: var(--white);
    cursor: pointer;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.document-icon-symbol {
    color: white;
    font-size: 20px;
}

.red-bg {
    background-color: #E30613;
}

.gray-bg {
    background-color: #6B7280;
}

.document-details {
    flex: 1;
}

.document-details h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.document-arrow {
    color: var(--dark-gray);
    font-size: 14px;
    opacity: 0.15;
}

.documents-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 20px;
    min-height: 100px;
}

.empty-state-message {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px 100px;
}

.empty-state-message p {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state-message .helper-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--dark-gray);
}

.bottom-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    transition: bottom 0.3s ease-in-out;
}

.bottom-modal.show {
    bottom: 0;
}

.bottom-modal-content {
    background-color: var(--white);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.close-button {
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.document-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

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

.document-info {
    display: flex;
    align-items: center;
}

.small-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.document-name {
    margin-left: 15px;
    font-size: 16px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #999;
    transition: .4s;
    border-radius: 34px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-input:checked + .toggle-label {
    background-color: #4CAF50;
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(26px);
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-backdrop.show {
    display: block;
}

.dimmed {
    opacity: 0.5;
    pointer-events: none;
}

.settings-section {
    padding: 5px 0;
    background-color: transparent;
    height: 100%;
    overflow-y: auto;
}

.settings-list {
    background-color: var(--white);
    margin-bottom: 20px;
    padding: 5px 0;
    border-radius: 6px;
    margin: 0 10px 20px 10px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.settings-icon i {
    font-size: 20px;
    color: var(--primary-blue);
}

.settings-details {
    flex: 1;
}

.settings-details h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.settings-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    color: var(--dark-gray);
}

.section-header {
    padding: 15px 20px 10px 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.document-selection-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--white);
}

.document-selection-header {
    text-align: center;
    margin-bottom: 30px;
}

.document-selection-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
}

.document-selection-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 45px;
    margin-bottom: 30px;
}

.document-option {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 180px;
}

.document-option h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.document-option p {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.4;
}

.document-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
}

.new-badge {
    background-color: var(--light-gray);
    color: var(--black);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 13px;
    border-radius: 10px;
    margin-left: auto;
}

#documentSelectionModal .modal-content {
    border-radius: 8px;
    padding: 0;
}

#documentSelectionModal .modal-header {
    text-align: center;
    border-bottom: none;
    padding: 20px 20px 10px 20px;
}

#documentSelectionModal .modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

#documentSelectionModal .modal-body {
    padding: 0 20px 20px 20px;
}

#documentSelectionModal .document-option:first-child {
    background-image: url('assets/cards/dowodOsobisty.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#documentSelectionModal .document-option:last-child {
    background-image: url('assets/cards/mDowodBanner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#documentSelectionModal .document-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    z-index: -1;
}

#documentSelectionModal .document-option h3,
#documentSelectionModal .document-option p {
    position: relative;
    z-index: 2;
}

#documentSelectionModal .primary-button {
    background-color: var(--primary-blue);
    color: var(--white);
    height: 44px;
    border-radius: 22px;
    font-weight: 500;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

#documentSelectionModal .secondary-button {
    height: 44px;
    border-radius: 22px;
    font-weight: 500;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    margin-top: 5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    margin-bottom: 24px;
    background-color: transparent;
}

.login-greeting {
    margin-top: 20px;
}

.login-greeting h1 {
    font-size: 31px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.login-greeting p {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

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

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #FFFFFF;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: #0056A4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 164, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.error-message {
    color: #e53935;
    font-size: 12px;
    min-height: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#loginScreen .form-input {
    background-color: #FFFFFF;
    color: #333;
    border-color: #E0E0E0;
}

#loginScreen .form-input:focus {
    border-color: #0056A4;
    box-shadow: 0 0 0 2px rgba(0, 86, 164, 0.1);
}

#loginScreen .form-input::placeholder {
    color: #999;
}

#editUserModal .modal-content {
    max-height: 90vh;
    overflow: hidden;
}

#editUserModal .modal-body {
    padding: 0;
    overflow: hidden;
}

#editUserModal .personal-data-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

#editUserModal .form-scrollable-container {
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 8px;
    margin-right: -8px;
}

#editUserModal .form-group {
    margin-bottom: 16px;
    width: 100%;
}

#editUserModal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

#editUserModal .form-input {
    width: 100%;
    height: 48px;
    font-size: 16px;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #333;
    transition: all 0.2s ease;
}

#editUserModal .form-input:focus {
    border-color: #0056A4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 164, 0.1);
}

#editUserModal .form-input::placeholder {
    color: #999;
}

#editUserModal .sub-form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

#editUserModal .sub-form-group {
    flex: 1;
}

#editUserModal .error-message {
    color: #e53935;
    font-size: 12px;
    min-height: 15px;
    margin: 12px 0;
}

#editUserModal .primary-button {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    #editUserModal .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    #editUserModal .form-scrollable-container {
        max-height: calc(60vh - 100px);
    }
    
    #editUserModal .form-group {
        margin-bottom: 12px;
    }
    
    #editUserModal .form-input {
        height: 44px;
        font-size: 15px;
        padding: 12px 14px;
    }
    
    #editUserModal .form-group label {
        font-size: 13px;
    }
    
    #editUserModal .sub-form-row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    #editUserModal .modal-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 0;
    }
    
    #editUserModal .personal-data-form {
        padding: 12px;
    }
    
    #editUserModal .form-input {
        height: 40px;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    #editUserModal .modal-header h2 {
        font-size: 18px;
    }
}

#editUserModal .form-scrollable-container::-webkit-scrollbar {
    width: 6px;
}

#editUserModal .form-scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#editUserModal .form-scrollable-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#editUserModal .form-scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

#loginScreen .login-form {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

#loginScreen .form-group {
    margin-bottom: 0;
    width: 100%;
}

#loginScreen .form-input {
    width: 100%;
    height: 48px;
    font-size: 16px;
    padding: 14px 40px 14px 16px;
    box-sizing: border-box;
    border: 1px solid #E0E0E0;
}

.error-message {
    color: #e53935;
    font-size: 12px;
    min-height: 15px;
    margin-top: 5px;
}

@media (max-width: 350px) {
    #loginScreen .login-form {
        padding: 12px;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
    
    .forgot-password a {
        font-size: 13px;
    }
}

.user-profile-section {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #666;
    font-size: 28px;
}

.user-info {
    flex: 1;
}

.user-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.user-email {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
}

.loading-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3a66c5;
    animation: spin 1s ease-in-out infinite;
}

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

.password-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    z-index: 2;
}

.toggle-password:focus {
    outline: none;
}

.forgot-password {
    margin-top: 12px;
    text-align: left;
}

.forgot-password a {
    color: #0056A4;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.primary-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background-color: #0069c0;
}

.primary-button:active {
    background-color: #004b8c;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirmation-actions button {
    flex: 1;
}

.secondary-button {
    background-color: #f5f5f5;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background-color: #e8e8e8;
}

.secondary-button:active {
    background-color: #d8d8d8;
}

.confirmation-section {
    margin: 24px 0;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.confirmation-section h3 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.confirmation-section p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.confirmation-section .confirmation-actions {
    display: flex;
    gap: 12px;
}

.confirmation-section .confirmation-actions button {
    flex: 1;
}

@media (max-width: 480px) {
    .confirmation-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .confirmation-section h3 {
        font-size: 16px;
    }
    
    .confirmation-section p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .confirmation-section {
        padding: 12px;
        margin: 16px 0;
    }
    
    .confirmation-section .confirmation-actions {
        flex-direction: column;
        gap: 8px;
    }
}

#changePasswordModal #save-password {
    border: 1px solid var(--primary-blue);
}

#servicesScreen .scrollable-content {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 40px;
}

.services-container {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 4px;
    padding-bottom: 40px;
}

.services-section {
    margin-bottom: 32px;
}

.services-section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--dark-text);
    padding-left: 4px;
}

.service-list {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.service-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.service-item:last-child {
    border-bottom: none;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: white;
    font-size: 18px;
}

.service-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 16px;
}

.service-arrow {
    color: #C5C5C7;
    font-size: 16px;
    margin-left: 8px;
}

.service-icon.safety {
    background-color: #E83E8C;
}

.service-icon.vehicle {
    background-color: #8BC34A;
}

.service-icon.pesel {
    background-color: #673AB7;
}

.service-icon.company {
    background-color: #2196F3;
}

.service-icon.penalty {
    background-color: #3F51B5;
}

.service-icon.fines {
    background-color: #4A5FC1;
}

.service-icon.energy {
    background-color: #C13928;
}

.service-icon.elections {
    background-color: #E74C3C;
}

.service-icon.prescription {
    background-color: #00BCD4;
}

.service-icon.flood {
    background-color: #2196F3;
}

.screen-header .edit-button {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

#servicesScreen .screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px 10px;
    margin-bottom: 10px;
}

#servicesScreen .screen-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.bottom-nav .nav-item span {
    font-weight: normal;
}

.bottom-nav .nav-item.active span {
    font-weight: 500;
}

.home-services .service-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 12px 0;
}

.home-services .service-item:last-child {
    border-bottom: none;
}

#servicesScreen .scrollable-content {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 50px;
}

.service-list {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.service-item {
    display: flex;
    align-items: center;
    padding: 16px;
    position: relative;
    border-radius: 0;
}

.services-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.service-toggle-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.service-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-toggle-info {
    flex-grow: 1;
    padding-right: 10px;
}

.service-toggle-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.service-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.service-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.service-toggle-item.disabled {
    opacity: 0.6;
}

.service-item.hidden-service {
    display: none !important;
}

.services-toggle-list::-webkit-scrollbar {
    width: 6px;
}

.services-toggle-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.services-toggle-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.services-toggle-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

#servicesEditModal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

#servicesEditModal.show {
    display: block;
}

#servicesEditModal .modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

#servicesEditModal.hide .modal-content {
    transform: translateY(100%);
}

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

#servicesEditModal .modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

#servicesEditModal .modal-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

#servicesEditModal .close-button {
    font-size: 24px;
    cursor: pointer;
}

#servicesEditModal .services-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

#servicesEditModal .service-toggle-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

#servicesEditModal .service-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

#servicesEditModal .service-toggle-info {
    flex-grow: 1;
}

#servicesEditModal .service-toggle-name {
    font-weight: 500;
    font-size: 16px;
    margin: 0;
    color: #333;
}

#servicesEditModal .service-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 10px;
}

#servicesEditModal .service-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#servicesEditModal .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

#servicesEditModal .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#servicesEditModal input:checked + .slider {
    background-color: #0052b5;
}

#servicesEditModal input:checked + .slider:before {
    transform: translateX(24px);
}

#servicesEditModal .modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

#servicesEditModal .modal-footer button {
    flex: 1;
    padding: 14px 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

#servicesEditModal .primary-button {
    background-color: #0052b5;
    color: white;
}

#servicesEditModal .secondary-button {
    background-color: white;
    color: #0052b5;
    border: 1px solid #0052b5;
}

#servicesEditModal .services-toggle-list::-webkit-scrollbar {
    width: 5px;
}

#servicesEditModal .services-toggle-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#servicesEditModal .services-toggle-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#servicesEditModal .services-toggle-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.service-item.hidden-service {
    display: none !important;
}