:root {
    /* Кольорова палітра */
    --primary: #16c2d5;
    --primary-light: #8fe4ed;
    --primary-dark: #0a8a99;
    --secondary: #ff6b6b;
    --success: #2ecc71;
    --info: #4cc9f0;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f5f7fa;
    --dark: #1a202c;
    --white: #ffffff;

    /* Сірі відтінки */
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;

    /* Тіні */
    --shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Радіуси */
    --radius-xs: 0.125rem;
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Часи переходів */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Типографіка */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
                 Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Скидання та базові стилі */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    height: 100%;
    scroll-behavior: smooth;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
}




body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--gray-100);
    line-height: 1.5;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 72px; /
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  display: none;
}
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.main-content {
    flex: 1;
    padding: 1rem 1rem;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Типографіка */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Логотип */
.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    text-shadow: 0 0 8px var(--primary-light);
}

.logo-text {
    position: relative;
    padding: 0 0.25rem;
}

.logo-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.7;
    z-index: -1;
    transform: scale(1.05);
}

/* Навігація */
.navbar {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

.nav-link i, .nav-link svg {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Кнопка меню (для мобільних) */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 1.25rem;
}

/* Випадаюче меню */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: '';
    margin-left: 0.5rem;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    list-style: none;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 12rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.dropdown-item i, .dropdown-item svg {
    margin-right: 0.5rem;
    font-size: 1.1em;
    width: 1.25rem;
    text-align: center;
}


.nav-link.active {
    color: var(--primary);
    background-color: rgba(22, 194, 213, 0.1);
    font-weight: 600;
}

.nav-link.active i,
.nav-link.active svg {
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: var(--gray-200);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.btn-icon svg, .btn-icon i {
    margin: 0;
    font-size: 1.25em;
}

.btn i, .btn svg {
    margin-right: 0.25rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(22, 194, 213, 0.2);
}

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

.btn-secondary:hover {
    background-color: darken(var(--secondary), 10%);
    color: var(--white);
}

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

.btn-success:hover {
    background-color: darken(var(--success), 10%);
    color: var(--white);
}

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

.btn-warning:hover {
    background-color: darken(var(--warning), 10%);
    color: var(--white);
}

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

/*.btn-danger:hover {*/
/*    background-color: darken(var(--danger), 10%);*/
/*    color: var(--white);*/
/*}*/

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

.btn-outline-danger {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

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

.btn-outline-secondary {
    background-color: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-400);
}

.btn-outline-secondary:hover {
    background-color: var(--gray-200);
    color: var(--gray-800);
    border-color: var(--gray-500);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

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

.btn-ghost.btn-primary:hover {
    background-color: rgba(22, 194, 213, 0.1);
}

/* Картки */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

.card-header-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* Форми */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 194, 213, 0.15);
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    appearance: none;
    transition: all var(--transition-fast);
}

.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 194, 213, 0.15);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    appearance: none;
    border: 2px solid var(--gray-400);
    border-radius: 0.25rem;
    transition: all var(--transition-fast);
}

.form-check-input[type="checkbox"] {
    border-radius: var(--radius-xs);
}

.form-check-input[type="radio"] {
    border-radius: var(--radius-full);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
}

.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 194, 213, 0.15);
    outline: none;
}

.form-check-label {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.form-optional {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Сітка */
.row {
    display: flex;
    flex-wrap: wrap;
    /*margin-right: -0.75rem;*/
    /*margin-left: -0.75rem;*/
}

.col {
    flex: 1 0 0%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Утиліти для відступів */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Утиліти для оформлення тексту */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-light { color: var(--gray-300) !important; }
.text-dark { color: var(--gray-800) !important; }
.text-muted { color: var(--gray-500) !important; }

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-md { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }

.font-thin { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }

/* Утиліти для сіткових лейаутів */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-inline { display: inline !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch { align-self: stretch !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-slideUp {
    animation: slideUp 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Повідомлення */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--gray-300);
    background-color: var(--gray-100);
    font-size: 0.95rem;
}

.alert-primary {
    background-color: rgba(22, 194, 213, 0.1);
    border-left-color: var(--primary);
    color: var(--primary-dark);
}

.alert-secondary {
    background-color: rgba(255, 107, 107, 0.1);
    border-left-color: var(--secondary);
    color: darken(var(--secondary), 20%);
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left-color: var(--success);
    color: darken(var(--success), 20%);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left-color: var(--warning);
    color: darken(var(--warning), 20%);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: var(--danger);
    color: darken(var(--danger), 20%);
}

.alert-info {
    background-color: rgba(76, 201, 240, 0.1);
    border-left-color: var(--info);
    color: darken(var(--info), 20%);
}

/* Відображення повідомлень */
.messages-container {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 1050;
    width: 350px;
    max-width: calc(100% - 40px);
}

.toast {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    animation: slideUp 0.3s ease-out;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.toast-title {
    font-weight: 600;
    color: var(--gray-800);
}

.toast-body {
    padding: 1rem;
    color: var(--gray-700);
}

.toast-close {
    background: none;
    border: none;
    padding: 0.25rem;
    font-size: 1rem;
    color: var(--gray-500);
    cursor: pointer;
}

/* Таблиці */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--gray-800);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--gray-200);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--gray-300);
    font-weight: 600;
    text-align: left;
}

.table-hover tbody tr:hover {
    background-color: var(--gray-100);
}

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

.table-bordered {
    border: 1px solid var(--gray-200);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--gray-200);
}

/* Таби */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Адаптивні медіа-запити */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

/*.mobile {*/
/*    display: none;*/
/*    }*/
@media (max-width: 768px) {
    /*.desktop{*/
    /*    display: none;*/
    /*}*/
    /*.mobile{*/
    /*    display: block;*/
    /*}*/
    .container {
        max-width: 720px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-toggle {
        display: block;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
        min-width: 6rem;
        width: 160px;
    box-shadow: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        max-height 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }


    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 576px) {
    .desktop{
        display: none;
    }
    .container {
        max-width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.15rem; }

    .btn {
        padding: 0.4rem 1rem;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }

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


 /* Модальні вікна */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-container {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 100vh;
        max-height: 75vh;
        overflow-y: auto;
        padding: 20px;
        position: relative;
    }

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

    .modal-header h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #888;
    }

    .modal-body {
        margin-bottom: 15px;
    }

    .modal-body textarea {
        width: 100%;
        min-height: 30vh;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
        resize: vertical;
    }

    .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        border-top: 1px solid #e0e0e0;
        padding-top: 15px;
    }

    .modal-btn {
        padding: 8px 15px;
        border-radius: 4px;
        cursor: pointer;
    }

    .modal-btn-secondary {
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        color: #333;
    }

    .modal-btn-primary {
        background-color: #007bff;
        border: 1px solid #0056b3;
        color: #fff;
    }

    .show-modal {
        display: flex !important;
    }


 .custom-shepherd-tooltip.shepherd-element {
    border: 2px solid #c78b38;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ── Navbar subscription badge (loaded globally) ─────────────── */

/* Mobile pinned badge — shown in navbar header row, hidden inside collapse */
.navbar-sub-mobile-btn {
    display: none !important;
    margin-right: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .navbar-sub-mobile-btn {
        display: inline-flex !important;
    }
    .navbar-sub-desktop-item {
        display: none !important;
    }
}

.nav-sub-item {
    display: flex;
    align-items: center;
}

.nav-sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-sub-badge:hover {
    transform: translateY(-1px);
}

.nav-sub-badge--free {
    background: #fff;
    color: var(--primary, #16c2d5);
    border: 2px solid var(--primary, #16c2d5);
    box-shadow: 0 0 0 3px rgba(22, 194, 213, 0.15);
}
.nav-sub-badge--free:hover {
    box-shadow: 0 0 0 4px rgba(22, 194, 213, 0.25);
}

.nav-sub-badge--trial {
    background: linear-gradient(135deg, #fff7e6, #ffedd5);
    color: #c2410c;
    border: 2px solid #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    animation: pulse-trial 2.5s infinite;
}
.nav-sub-badge--trial:hover {
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.3);
}

.nav-sub-badge--paid {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    color: #78350f;
    border: 2px solid #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}
.nav-sub-badge--paid:hover {
    box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.3);
}

.nav-sub-badge--partner {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #4c1d95;
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.nav-sub-badge--partner:hover {
    box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.3);
}

@keyframes pulse-trial {
    0%, 100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.35); }
}

/* ── Navbar subscription modals ─────────────────────────────── */
.nav-sub-modal {
    max-width: 380px;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

.nav-sub-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    position: relative;
}

.nav-sub-modal-header--free    { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); color: #374151; }
.nav-sub-modal-header--trial   { background: linear-gradient(135deg, #fff7e6, #ffedd5); color: #c2410c; }
.nav-sub-modal-header--paid    { background: linear-gradient(135deg, #fefce8, #fef9c3); color: #78350f; }
.nav-sub-modal-header--partner { background: linear-gradient(135deg, #ede9fe, #f5f3ff); color: #4c1d95; }
.nav-sub-modal-header--cancel  { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #991b1b; }

.nav-sub-modal-plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-sub-modal-plan-name   { font-size: 1rem; font-weight: 700; }
.nav-sub-modal-plan-status { font-size: 0.8rem; opacity: 0.8; }

.nav-sub-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    padding: 4px 6px;
    border-radius: 6px;
    color: inherit;
}
.nav-sub-modal-close:hover { opacity: 1; background: rgba(0,0,0,0.08); }

.nav-sub-modal-body { padding: 20px; }

.nav-sub-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.nav-sub-stat {
    flex: 1;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-100, #f3f4f6);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.nav-sub-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 4px;
    font-weight: 500;
}

.nav-sub-stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

/* ── Upgrade plan cards ───────────────────────────────────── */
.nav-upgrade-plan-card {
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.nav-upgrade-plan-card--featured {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}
.nav-upgrade-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.nav-upgrade-plan-name  { font-weight: 700; font-size: 1rem; }
.nav-upgrade-plan-price { font-size: 1.1rem; font-weight: 800; color: var(--primary, #16c2d5); }
.nav-upgrade-plan-price small { font-size: 0.75rem; font-weight: 500; color: var(--gray-500, #6b7280); }

.nav-upgrade-benefits { list-style: none; padding: 0; margin: 0 0 12px; }
.nav-upgrade-benefits li { font-size: 0.82rem; color: var(--text-secondary, #374151); padding: 3px 0; }
.nav-upgrade-benefits li i { color: #16a34a; margin-right: 6px; width: 14px; }

.nav-upgrade-pay-btn { width: 100%; font-size: 0.9rem; }

.btn-block { width: 100%; }
