/* Laravel-Appointments Theme for JB-Group */

/* Общие настройки тела страницы */
body {
    background-color: #f4f4f4 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #23282c !important;
}

/* Основной контейнер */
main.d-flex {
    background-color: #f4f4f4 !important;
}

/* Сайдбар CoreUI */
.sidebar {
    background-color: #2f353a !important;
    color: #c2cfd6 !important;
    min-height: 100vh !important;
    border-right: 1px solid #444951 !important;
    width: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 60px) !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    z-index: 999 !important;
    padding-bottom: 80px !important;
}

.sidebar-nav {
    flex: 1 !important;
    padding: 0 !important;
}

.sidebar .nav {
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar .nav-item {
    width: 100% !important;
}

.sidebar .nav-link {
    color: #c2cfd6 !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    border: none !important;
    background: transparent !important;
}

.sidebar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(46, 119, 237, 0.1) !important;
}

.sidebar .nav-link.active {
    color: #2e77ed !important;
    background-color: rgba(46, 119, 237, 0.15) !important;
}

.sidebar .nav-icon {
    margin-right: 0.5rem !important;
    width: 16px !important;
    text-align: center !important;
    color: inherit !important;
}


.flex-shrink-0.p-3.sidebar * {
    color: #c2cfd6 !important;
}

.flex-shrink-0.p-3.sidebar a {
    color: #c2cfd6 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    transition: all 0.15s ease-in-out !important;
}

.flex-shrink-0.p-3.sidebar a:hover {
    color: #ffffff !important;
    background-color: rgba(46, 119, 237, 0.1) !important;
}

.flex-shrink-0.p-3.sidebar .border-bottom {
    border-color: #495057 !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.flex-shrink-0.p-3.sidebar .d-flex.align-items-center {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Навигация сайдбара */
.flex-shrink-0.p-3.sidebar .btn-toggle {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    font-size: 0.75rem !important;
    text-align: left !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0.25rem !important;
    position: relative !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle i {
    margin-right: 0.5rem !important;
    width: 16px !important;
    text-align: center !important;
}

/* Скрываем все левые стрелки от Bootstrap */
.flex-shrink-0.p-3.sidebar .btn-toggle::before {
    display: none !important;
}

/* Убираем Bootstrap стрелки коллапсов */
.flex-shrink-0.p-3.sidebar [data-bs-toggle="collapse"]::before,
.flex-shrink-0.p-3.sidebar .collapsed::before {
    display: none !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle::after {
    content: "\f107" !important;
    font-family: "FontAwesome" !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.2s ease !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle:hover {
    background-color: rgba(46, 119, 237, 0.1) !important;
    color: #ffffff !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle[aria-expanded="true"] {
    background-color: rgba(46, 119, 237, 0.15) !important;
    color: #2e77ed !important;
}

/* Дропдаун меню в сайдбаре */
.flex-shrink-0.p-3.sidebar .btn-toggle-nav {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle-nav a {
    padding: 0.5rem 1.5rem !important;
    color: #adb5bd !important;
    font-size: 0.875rem !important;
    display: block !important;
    border-radius: 0.375rem !important;
    margin: 0.125rem 0 !important;
}

.flex-shrink-0.p-3.sidebar .btn-toggle-nav a:hover {
    background-color: rgba(46, 119, 237, 0.1) !important;
    color: #ffffff !important;
}

/* Стили для списков в сайдбаре */
.flex-shrink-0.p-3.sidebar .navbar-nav {
    padding: 0 !important;
    margin: 0 !important;
}

.flex-shrink-0.p-3.sidebar .navbar-nav li {
    list-style: none !important;
    margin-bottom: 0.25rem !important;
}

/* Стили для коллапсов */
.flex-shrink-0.p-3.sidebar .collapse {
    margin-top: 0.25rem !important;
}

.flex-shrink-0.p-3.sidebar .list-unstyled {
    padding-left: 1rem !important;
}

/* Границы между разделами в сайдбаре */
.flex-shrink-0.p-3.sidebar .border-top {
    border-color: #495057 !important;
    margin: 0.75rem 0 !important;
}

/* Улучшенные стили для ссылок */
.flex-shrink-0.p-3.sidebar .link-body-emphasis {
    color: #adb5bd !important;
    text-decoration: none !important;
    padding: 0.5rem 0.75rem !important;
    display: block !important;
    border-radius: 0.375rem !important;
    transition: all 0.15s ease-in-out !important;
}

.flex-shrink-0.p-3.sidebar .link-body-emphasis:hover {
    color: #ffffff !important;
    background-color: rgba(46, 119, 237, 0.1) !important;
}

/* Хедер */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 60px !important;
}

.navbar-brand {
    color: #2e77ed !important;
    font-weight: 500 !important;
}

/* Основной контент */
.fixed-content, .container {
    background-color: #ffffff !important;
    color: #23282c !important;
    padding: 1.5rem !important;
    margin: 1rem;
    margin-top: 80px !important;
}

/* Основная область под хедером */
main.d-flex {
    margin-top: 60px !important;
    margin-left: 280px !important;
    padding-top: 0 !important;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: #23282c !important;
    font-weight: 600 !important;
}

/* Карточки */
.card {
    border: 1px solid #c8ced3 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    background-color: #ffffff !important;
}

.card-header {
    background-color: #f0f3f5 !important;
    border-bottom: 1px solid #c8ced3 !important;
    color: #23282c !important;
    font-weight: 600;
}

/* Таблицы */
.table {
    background-color: #ffffff !important;
    color: #23282c !important;
}

.table thead th {
    background-color: #f0f3f5 !important;
    border-bottom: 2px solid #c8ced3 !important;
    color: #23282c !important;
    font-weight: 600;
}

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

.table-hover tbody tr:hover {
    background-color: rgba(32, 201, 151, 0.1) !important;
}

/* Кнопки */
.btn-primary {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1ba085 !important;
    border-color: #1ba085 !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-danger {
    background-color: #e55353 !important;
    border-color: #e55353 !important;
}

.btn-success {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.btn-info {
    background-color: #63c2de !important;
    border-color: #63c2de !important;
    color: #ffffff !important;
}

/* Формы */
.form-control {
    border: 1px solid #c8ced3 !important;
    border-radius: 0.25rem !important;
    background-color: #ffffff !important;
    color: #23282c !important;
}

.form-control:focus {
    border-color: #20c997 !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25) !important;
}

.form-label {
    color: #23282c !important;
    font-weight: 500;
}

/* Алерты */
.alert-success {
    background-color: #d1ecf1 !important;
    border-color: #20c997 !important;
    color: #0c5460 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #e55353 !important;
    color: #721c24 !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
}

.alert-info {
    background-color: #cce8f4 !important;
    border-color: #63c2de !important;
    color: #31708f !important;
}

/* DataTables стили */
.datatable {
    background-color: #ffffff !important;
}

.dataTables_wrapper {
    background-color: #ffffff !important;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dataTables_filter input {
    border: 1px solid #c8ced3 !important;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Пагинация */
.pagination .page-link {
    color: #20c997 !important;
    border: 1px solid #c8ced3 !important;
    background-color: #ffffff !important;
}

.pagination .page-link:hover {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
    color: #ffffff !important;
}

.pagination .page-item.active .page-link {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
    color: #ffffff !important;
}

/* Дропдауны */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #c8ced3 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175) !important;
}

.dropdown-item {
    color: #23282c !important;
}

.dropdown-item:hover {
    background-color: #f0f3f5 !important;
    color: #20c997 !important;
}

/* Навбар (если используется) */
.navbar {
    background-color: #2f353a !important;
    border-bottom: 1px solid #c8ced3;
}

.navbar-nav .nav-link {
    color: #c2cfd6 !important;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

/* Бейджи */
.badge-primary {
    background-color: #20c997 !important;
}

.badge-secondary {
    background-color: #6c757d !important;
}

.badge-success {
    background-color: #20c997 !important;
}

.badge-danger {
    background-color: #e55353 !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge-info {
    background-color: #63c2de !important;
}

/* Текстовые цвета */
.text-primary {
    color: #20c997 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #20c997 !important;
}

.text-danger {
    color: #e55353 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #63c2de !important;
}

.text-light {
    color: #c2cfd6 !important;
}

.text-dark {
    color: #23282c !important;
}

/* Модальные окна */
.modal-content {
    background-color: #ffffff !important;
    border: 1px solid #c8ced3 !important;
    border-radius: 0.375rem !important;
}

.modal-header {
    background-color: #f0f3f5 !important;
    border-bottom: 1px solid #c8ced3 !important;
}

.modal-footer {
    background-color: #f0f3f5 !important;
    border-top: 1px solid #c8ced3 !important;
}

/* Прелоадеры и спиннеры */
.spinner-border-primary {
    color: #20c997 !important;
}

/* Дополнительные утилиты */
.bg-light {
    background-color: #f0f3f5 !important;
}

.bg-dark {
    background-color: #2f353a !important;
}

.bg-primary {
    background-color: #20c997 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.border-light {
    border-color: #c8ced3 !important;
}

/* Адаптация для существующих элементов */
.link-body-emphasis {
    color: #c2cfd6 !important;
}

.link-body-emphasis:hover {
    color: #ffffff !important;
}

/* Стили для формы авторизации */
.login-page {
    background-color: #f4f4f4 !important;
}

.login-page .app {
    background-color: #f4f4f4 !important;
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.login-page .card-group {
    margin: 0 !important;
}

.login-page .container {
    background-color: transparent !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-page .card-group {
    max-width: 70% !important;
    width: 70% !important;
    padding: 1rem !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.login-page .card {
    border: none !important;
    border-radius: 0.375rem !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}

.login-page .card-body {
    padding: 2rem !important;
}

.login-page h1 {
    color: #23282c !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.login-page .text-muted {
    color: #6c757d !important;
    margin-bottom: 1.5rem !important;
}

.login-page .input-group {
    margin-bottom: 1rem !important;
}

.login-page .input-group-text {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #6c757d !important;
    width: 2.5rem !important;
    justify-content: center !important;
}

.login-page .form-control {
    border: 1px solid #ced4da !important;
    border-radius: 0 0.25rem 0.25rem 0 !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-color: #ffffff !important;
    color: #495057 !important;
}

.login-page .form-control:focus {
    border-color: #20c997 !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25) !important;
}

.login-page .form-control.is-invalid {
    border-color: #e55353 !important;
}

.login-page .invalid-feedback {
    display: block !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
    font-size: 0.875rem !important;
    color: #e55353 !important;
}

.login-page .form-check {
    margin-bottom: 0 !important;
}

.login-page .form-check-input {
    margin-top: 0.25rem !important;
    margin-right: 0.5rem !important;
}

.login-page .form-check-label {
    color: #495057 !important;
    font-size: 0.875rem !important;
}

.login-page .btn-primary {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    border-radius: 0.25rem !important;
}

.login-page .btn-primary:hover {
    background-color: #1ba085 !important;
    border-color: #1ba085 !important;
}

.login-page .btn-link {
    color: #20c997 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
}

.login-page .btn-link:hover {
    color: #1ba085 !important;
    text-decoration: underline !important;
}

.login-page .alert {
    margin-bottom: 1rem !important;
    border-radius: 0.25rem !important;
}

.login-page .alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

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

.login-page .list-unstyled {
    padding-left: 0 !important;
    list-style: none !important;
}

.login-page .list-unstyled li {
    margin-bottom: 0.25rem !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .login-page .card-body {
        padding: 1.5rem !important;
    }

    .login-page .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    .login-page .text-right {
        text-align: left !important;
    }
}
