* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: white;
    color: black;
    font-size: 16px;
    line-height: 1.5;
}

html {
    scroll-behavior: auto;
}

html, body {
    scroll-restoration: manual;
}

/* Container */
.main-container {
    width: 100%;
    margin: 0;
    padding: 50px 16px;
}

@media (max-width: 767px) {
    .main-container {
        padding: 0 12px;
    }
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid rgb(170, 149, 124);
    padding: 25px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-salon-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-salon-selector label {
    font-size: 16px;
    font-weight: 500;
    color: black;
    margin: 0;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 18px;
    font-weight: 500;
    color: black;
    text-align: center;
}

.login-page .nav-container {
    justify-content: center;
}

.login-page .nav-logo {
    position: static;
    transform: none;
    gap: 12px;
}

.login-page .logo {
    height: 50px;
}

.login-page .nav-title {
    font-size: 20px;
}

@media (max-width: 767px) {
    .nav-container {
        padding: 0 12px;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .nav-salon-selector {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-logo {
        position: static;
        transform: none;
        order: 1;
    }
    
    .nav-logout {
        order: 2;
    }
    
    .logo {
        height: 32px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    .custom-select {
        min-width: 180px;
    }
}

.nav-brand {
    font-size: 21px;
    font-weight: 500;
    color: black;
    text-decoration: none;
}

.nav-logout {
    color: black;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
}

.nav-logout:hover {
    text-decoration: underline;
    color: black;
}

/* Typography */
h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 80px;
    color: black;
}

h2 {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 24px;
    color: black;
}

h3 {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
    color: black;
}

h4 {
    font-size: 24px;
    font-weight: 500;
    color: black;
}

@media (max-width: 1023px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
}

@media (max-width: 767px) {
    h1 { font-size: 32px; margin-bottom: 48px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    
    .main-container {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* Sections */
.section {
    margin-bottom: 120px;
}

@media (max-width: 767px) {
    .section {
        margin-bottom: 72px;
    }
}

/* Cards */
.card {
    background: white;
    border: 1px solid rgb(170, 149, 124);
    border-radius: 2px;
    margin-bottom: 80px;
    overflow: hidden;
}

.card-header {
    background: rgb(243, 243, 243);
    padding: 32px 40px;
    border-bottom: 1px solid rgb(170, 149, 124);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .card-header {
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.card-body {
    padding: 40px;
}

@media (max-width: 767px) {
    .card-body {
        padding: 20px;
    }
}

/* Buttons */
.btn {
    color: black;
    background: transparent;
    border: 1px solid rgb(170, 149, 124);
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    color: white;
    background: rgb(170, 149, 124);
}

.btn-primary {
    background: rgb(170, 149, 124);
    color: white;
    border: 1px solid rgb(170, 149, 124);
}

.btn-primary:hover {
    background: rgb(150, 129, 104);
    color: white;
    text-decoration: none;
}

.btn-success {
    background: rgb(170, 149, 124);
    color: white;
    border: 1px solid rgb(170, 149, 124);
}

.btn-success:hover {
    background: rgb(150, 129, 104);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: rgb(243, 243, 243);
    color: black;
    border: 1px solid rgb(170, 149, 124);
}

.btn-secondary:hover {
    background: rgb(170, 149, 124);
    color: white;
    text-decoration: none;
}

.btn-excel {
    background: rgba(33, 115, 70, 0.65);
    color: white;
    border: 1px solid #217346;
}

.btn-excel:hover {
    background: #217346;
    color: white;
    text-decoration: none;
}

.me-2 {
    margin-right: 0.5rem;
}

/* Tables */
.table-container {
    background: white;
    border: 1px solid rgb(170, 149, 124);
    border-radius: 2px;
    overflow: hidden;
}

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

.table th {
    background: rgb(243, 243, 243);
    padding: 16px 20px;
    font-weight: 500;
    color: black;
    border-bottom: 1px solid rgb(170, 149, 124);
    text-align: left;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgb(243, 243, 243);
    vertical-align: middle;
    font-size: 14px;
    color: black;
}

.table td[contenteditable="true"] {
    background: #f5f5f7;
    cursor: text;
    transition: all 0.2s ease;
}

.table td[contenteditable="true"]:hover {
    background: #e8e8ed;
}

.table td[contenteditable="true"]:focus {
    background: #ffffff;
    outline: 2px solid #0066cc;
    border-radius: 4px;
}

.table-responsive {
    max-height: 70vh;
    overflow: auto;
}

/* Salon Selector */
.salon-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px;
}

.salon-selector label {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
}

/* Custom Select */
.custom-select {
    position: relative;
    min-width: 200px;
}

.custom-select-trigger {
    padding: 12px 16px;
    border: 1px solid rgb(170, 149, 124);
    border-radius: 2px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    gap: 16px;
}

.custom-select-trigger:hover {
    border-color: rgb(150, 129, 104);
}

.custom-select-trigger::after {
    content: '▼';
    font-size: 12px;
    color: black;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgb(170, 149, 124);
    border-top: none;
    border-radius: 0 0 2px 2px;
    max-height: 200px;
    overflow-y: scroll;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(170, 149, 124, 0.2);
    scrollbar-width: auto;
    scrollbar-color: rgb(170, 149, 124) rgb(243, 243, 243);
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.custom-select-options::-webkit-scrollbar {
    width: 12px;
    -webkit-appearance: none;
    display: block;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgb(243, 243, 243);
    border-radius: 2px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgb(170, 149, 124);
    border-radius: 2px;
    min-height: 20px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgb(150, 129, 104);
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    color: black;
}

.custom-select-option:hover {
    background: rgb(243, 243, 243);
}

.custom-select-option.selected {
    background: rgb(170, 149, 124);
    color: white;
}

.custom-select-option.selected:hover {
    background: rgb(150, 129, 104);
}

/* Data Forms */
.data-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: #f5f5f7;
    padding: 30px;
    border-radius: 12px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgb(170, 149, 124);
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    color: black;
}

.form-group input:focus {
    outline: none;
    border-color: rgb(150, 129, 104);
    box-shadow: 0 0 0 2px rgba(170, 149, 124, 0.1);
}

.form-group input.editable-field {
    background: white;
}

.form-group input[readonly] {
    background: rgb(243, 243, 243);
    color: black;
}

.form-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
}

/* Period Selector Container */
.period-selector-container {
    text-align: center;
    padding: 40px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 24px;
}

.period-selector-container label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.period-selector-container select {
    padding: 12px 16px;
    border: 1px solid rgb(170, 149, 124);
    border-radius: 2px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: black;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23000" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Period Selector */
.period-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-selector label {
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
    font-size: 16px;
}

.period-select {
    padding: 8px 12px;
    border: 1px solid rgb(170, 149, 124);
    border-radius: 2px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: black;
    cursor: pointer;
    min-width: 140px;
}

.period-select:focus {
    outline: none;
    border-color: rgb(150, 129, 104);
    box-shadow: 0 0 0 2px rgba(170, 149, 124, 0.1);
}

@media (max-width: 767px) {
    .period-selector {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .data-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Salon Grid */
.salon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.salon-card {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 18px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.salon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.salon-card h5 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.salon-card p {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 24px;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 18px;
    padding: 48px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

@media (max-width: 767px) {
    .login-card {
        padding: 32px 24px;
    }
}

.login-card h4 {
    margin-bottom: 32px;
    font-weight: 500;
    color: #1d1d1f;
}

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

.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: none;
    font-size: 14px;
}

.alert-danger {
    background: #fff2f2;
    color: #d70015;
    border: 1px solid #ffcccc;
}

.alert-success {
    background: #f0fff4;
    color: #1d7324;
    border: 1px solid #ccffcc;
}

/* Section Title */
.section-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .section-title {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

.page-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    margin: 0;
}

@media (max-width: 1023px) {
    .page-title {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 32px;
    }
}

/* Стилі для модального вікна співставлення полів */
.mapping-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mapping-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.field-mapping h5 {
    margin-bottom: 20px;
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 500;
}

.mapping-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #f9f9f9;
}

.mapping-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.mapping-row:last-child {
    border-bottom: none;
}

.mapping-row label {
    font-weight: 500;
    color: #1d1d1f;
    font-size: 14px;
}

.field-mapping-select {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #1d1d1f;
}

.field-mapping-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.mapping-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
}

.mapping-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
}

/* Стилі для вибору аркуша */
.sheet-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sheet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.sheet-option:hover {
    background: #f5f5f7;
    border-color: #0066cc;
}

.sheet-number {
    background: #0066cc;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
}

.sheet-name {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
}

/* Стилі для введення дати */
.date-input-container {
    margin-bottom: 20px;
}

.date-input-container input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
}

.date-input-container input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* Стилі для файлового інпуту */
.file-upload-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-block;
    padding: 8px 16px;
    background: #0066cc;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    background: #0052a3;
}

/* Індикатор завантаження */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Прогрес бар */
.progress-container {
    margin: 20px 0;
    background: #f5f5f7;
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: #0066cc;
    transition: width 0.3s ease;
    width: 0%;
}

/* Статистика імпорту */
.import-stats {
    background: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.import-stats .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.import-stats .stat-item:last-child {
    margin-bottom: 0;
}

.import-stats .stat-label {
    font-weight: 500;
    color: #1d1d1f;
}

.import-stats .stat-value {
    color: #0066cc;
    font-weight: 500;
}

/* Попередження та помилки */
.warning-list {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.warning-list h6 {
    color: #e65100;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.warning-list ul {
    margin: 0;
    padding-left: 20px;
}

.warning-list li {
    color: #e65100;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Валідація полів */
.field-validation {
    font-size: 12px;
    margin-top: 5px;
}

.field-validation.valid {
    color: #1d7324;
}

.field-validation.invalid {
    color: #d70015;
}

.field-validation.warning {
    color: #e65100;
}

/* Підказки */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1d1d1f;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 767px) {
    .mapping-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .mapping-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .mapping-actions {
        flex-direction: column;
    }
    
    .sheet-option {
        padding: 12px;
    }
    
    .sheet-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .file-upload-container {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .tooltip .tooltip-text {
        width: 150px;
        margin-left: -75px;
    }
}

/* Стилі для довідки */
.help-modal {
    max-width: 700px;
}

.import-help h5 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
}

.help-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.help-section.warning {
    background: #fff8e1;
    border-left-color: #ff9800;
}

.help-section h6 {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.help-section ul,
.help-section ol {
    margin: 0;
    padding-left: 20px;
}

.help-section li {
    color: #424245;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.help-section li:last-child {
    margin-bottom: 0;
}

/* Кнопка довідки */
.help-button {
    background: none;
    color: black;
    border: none;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.help-button:hover {
    background: rgb(243, 243, 243);
    color: black;
}

.help-button:before {
    content: '❓';
    margin-right: 4px;
}

/* Кнопка довідки без обводки */
.help-link {
    background: none;
    color: #0066cc;
    border: none;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: #0052a3;
}

/* Кнопка закриття модального вікна */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.mapping-modal-content {
    position: relative;
}

/* Індикатор завантаження */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    border-radius: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Повідомлення */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
}

.notification-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification-icon {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.notification-modal.success .notification-icon {
    color: #1d7324;
}

.notification-modal.error .notification-icon {
    color: #d70015;
}

.notification-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #1d1d1f;
    line-height: 1.5;
}

.notification-modal button {
    margin-top: 10px;
}