/* CSS переменные для новой левой панели */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --whatsapp: #25D366;
    --email: #EA4335;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Основные стили для body */
body {
    display: flex;
    min-height: 100vh;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Левая панель - статическая без сворачивания */
.sidebar {
    width: 280px;
    background: var(--card-bg);
    padding: 20px 15px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 100;
    flex-shrink: 0;
    scrollbar-width: none;
}

/* Обновленный дизайн логотипа с увеличенным текстом */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.2;
    text-decoration: none;
}

.logo-title a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo-title a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.company-info {
    font-size: 16px;
    color: var(--text);
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.05);
    margin-top: 8px;
}

.about-link:hover {
    color: var(--primary-dark);
    background: rgba(37, 99, 235, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 12px 0;
}

.section-title i {
    color: var(--primary);
    font-size: 18px;
}

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

.nav-item {
    margin-bottom: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 0;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.nav-link.active {
    font-weight: 600;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    color: var(--primary);
}

.support-section {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.support-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.support-title i {
    color: var(--primary);
}

.support-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    font-size: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Стили для иконки WhatsApp */
.support-icon.whatsapp {
    color: var(--whatsapp);
    border: 1px solid var(--whatsapp);
}

.support-icon.whatsapp:hover {
    transform: translateY(-3px);
    background: var(--whatsapp);
    color: white;
}

/* Стили для иконки Telegram */
.support-icon.telegram {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.support-icon.telegram:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
}

/* Стили для иконки Email */
.support-icon.email {
    color: var(--email);
    border: 1px solid var(--email);
}

.support-icon.email:hover {
    transform: translateY(-3px);
    background: var(--email);
    color: white;
}

.support-info {
    text-align: center;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.4;
}

.emergency {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.emergency p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 6px;
}

.phone {
    font-weight: 800;
    color: var(--text);
    font-size: 20px;
    margin: 8px 0;
}

.schedule {
    font-size: 14px;
    color: var(--success);
}

.marketing-section {
    margin: 25px 0;
}

.marketing-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}

.marketing-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.marketing-icon {
    min-width: 45px;
    height: 45px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
}

.marketing-content .title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 16px;
    text-decoration: none;
}

.marketing-content .title a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.marketing-content .title a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.marketing-content a {
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.marketing-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.sidebar-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.solutions-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    margin-bottom: 15px;
    text-align: center;
}

.solutions-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.privacy-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Переопределение AdminLTE стилей */
body:not(.sidebar-mini-md) .content-wrapper,
body:not(.sidebar-mini-md) .main-footer,
body:not(.sidebar-mini-md) .main-header {
    margin-left: 0 !important;
    transition: none !important;
}

/* Дополнительные переопределения для AdminLTE */
.content-wrapper,
.main-footer,
.main-header {
    margin-left: 0 !important;
    transition: none !important;
}

/* Убираем все margin-left от AdminLTE */
@media (min-width: 768px) {
    body:not(.sidebar-mini-md) .content-wrapper,
    body:not(.sidebar-mini-md) .main-footer,
    body:not(.sidebar-mini-md) .main-header {
        margin-left: 0 !important;
    }
}

/* Основной контент */
.main-content {
    flex: 1;
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
}

.content-wrapper {
    flex: 1;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Футер */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border);
    padding: 15px 20px;
    text-align: right;
    font-size: 14px;
    color: var(--text-light);
    margin-top: auto;
}

.main-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.main-footer a:hover {
    text-decoration: underline;
}

.form-group.has-success input{
    border-color: #28a745;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(.375em + .1875rem);
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-group.has-success .input-group-append .input-group-text{
    border-color: #28a745;
}
.form-group.has-success input:active + .input-group-append .input-group-text{
    border-color: #28a745;
}
.form-group.has-error input{
    border-color: #dc3545;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(.375em + .1875rem);
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-group.has-error .input-group-append .input-group-text{
    border-color: #dc3545;
}
.fa-white{
    color: white;
}
.fa-18{
    font-size: 18px;
}
.user-panel .image{
    display: flex;
    align-items: center;
}
.brand-link{
    padding-left: 0.6rem;
}
.brand-link span{
    margin-left: 10px;
}
.link-pointer{
    cursor: pointer;
}
.card-header__beetwen{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
a.link-green{
    color: var(--success);
}
a.link-orange{
    color: var(--orange);
}
.line-disable{
    color: var(--gray);
}
.tab-content-form{
    margin-top: 15px;
}
.help-block.help-block-error{
    color: #dc3545;
}
.nav-item .nav-link p{
    padding-left: 5px;
}
.select-full .select2{
    width: 100% !important;
}
.card-content-item{
    display: flex;
    align-items: center;
}
.card-content-item .form-group{
    flex: 0 0 35%;
    margin-right: 10px;
}
.select2 {
    width: 100% !important;
}
.select2-search__field{
    background: none !important;
}
.card-header-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.event-url-content button{
    margin-left: 10px;
    margin-bottom: 6px;
}
.cart-content-item{
    display: flex;
    align-items: center;
}
.cart-content-item .form-group{
    flex: 0 0 35%;
    margin-right: 10px;
}
.callout-result {
    margin: 30px;
}
.order-number{
    margin-left: 10px;;
}
.disabledTab {
    pointer-events: none;
}
.disabledTab a {
    color: #ccc;
    cursor: 'not-allowed';
}
.checkbox-block .icheck-primary {
    display: block !important;
}
.description-index img {
    margin: 0 0 10px 0;
}

.modal-dialog {
    margin: 10% auto !important;
}

.custom-file-label::after {
    content: "Выбрать файл" !important;
}

td .help-block.help-block-error {
    margin: 0;
}

td .form-group {
    margin-bottom: 0;
}