main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

.navbar.bg-primary {
    background-color: #0d6efd !important;
}

.btn-orange, .bg-orange {
    background-color: #fd7e14 !important;
    color: #fff;
}
.badge-orange { background-color: #fd7e14; color: #fff; }

.brand-logo {
    font-weight: 800;
    color: #fff;
}

.brand-logo span {
    color: #fd7e14;
}

.footer {
    background: #f8f9fa;
}

.orange-plus {
    color: #fd7e14;
}

/*.angle-brackets {*/
/*    color: #fd7e14;*/
/*    font-family: 'Courier New', Courier, monospace;*/
/*    !*font-weight: bold;*!*/
/*    font-weight: 900; !* Максимальная жирность *!*/
/*    margin-right: 8px; !* отступ между `</>` и текстом *!*/
/*}*/

/*.brand-logo {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    font-size: 1.25rem; !* при необходимости *!*/
/*}*/

/* Анимация вращения */
/* Ключевые кадры анимации (1 оборот за 1 секунду) */
/*@keyframes spin-once {*/
/*    0% { transform: rotateY(0deg); }*/
/*    100% { transform: rotateY(360deg); }*/
/*}*/

/*.logo-spin {*/
/*    animation: spin-once 1s 10s infinite;*/
/*    animation-fill-mode: both;*/
/*    display: inline-block;*/
/*    transform-style: preserve-3d;*/
/*}*/

.logo-spin {
    display: inline-block;
    transform-style: preserve-3d;
    animation: spin-cycle 11s infinite linear;
}

@keyframes spin-cycle {
    0%, 90.9% { transform: rotateY(0deg); }  /* Пауза ~10сек */
    100% { transform: rotateY(360deg); }     /* Вращение 1сек */
}

.angle-brackets {
    color: #fd7e14;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.angle-brackets {
    color: #fd7e14;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* Home (index) */
.hero {
    background: linear-gradient(135deg, rgba(0,123,255,1) 0%, rgba(0,123,255,0.9) 50%, rgba(253,126,20,0.9) 100%);
}
.hero .stat-number { font-size: 1.5rem; font-weight: 800; }
.hero .stat-label { font-size: .8rem; opacity: .9; }
.text-orange, .text-orange > * { color: #fd7e14 !important; }

.feature .feature-icon {
    width: 44px; height: 44px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.bg-orange { background-color: #fd7e14 !important; }

.howto li { position: relative; padding-left: 36px; margin-bottom: .75rem; }
.howto .num {
    position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%;
    background: #fd7e14; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* Social proof numbers */
.stats-large .stat-number { font-size: 2rem; font-weight: 900; }
.stats-large .text-orange { color: #fd7e14 !important; }

/* Chat styles */
.chat-info-card {
    /*border: 2px solid #fd7e14 !important;*/
    /*background-color: #fff3e0 !important;*/
    border: 2px solid #007bff !important;
    background-color: #e3f2fd !important;
}

.chat-orders-list, .card-head-title, .card-head-list {
    border: 2px solid #007bff !important;
    /*background-color: #e3f2fd !important;*/
}

.chat-respo-list {
    border: 2px solid #fd7e14 !important;
    /*background-color: #fff3e0 !important;*/
}

.chat-respo-head{
    background-color: #fff3e0 !important;
}
.chat-respo-list .list-group-item.active {
    color: #fff;
    background-color: #fd7e14; /* например, красный */
    border-color: #fd7e14;
    z-index: 2;
}

.chat-orders-head{
    background-color: #e3f2fd !important;
}

.navbar-nav .nav-item  {
    position: relative;
    top: 6px;
}

/* Добавьте эти стили в ваш main.css */

/* Стили для блока управления изображениями */
.image-management {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.image-management label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: block;
}

.image-management .btn-add-image {
    background: linear-gradient(135deg, #fd7e14 0%, #e76a00 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.image-management .btn-add-image:hover {
    background: linear-gradient(135deg, #e76a00 0%, #d15a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.image-management .btn-add-image:active {
    transform: translateY(0);
}

/* Стили для галереи изображений */
.image-gallery-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.image-gallery-container label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: block;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 0;
}

.image-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.image-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-gallery-item .btn-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.95);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.image-gallery-item:hover .btn-delete {
    opacity: 1;
    transform: scale(1);
}

.image-gallery-item .btn-delete:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Стиль для состояния "нет изображений" */
.no-images {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.no-images i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.no-images p {
    margin: 0;
    font-style: italic;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-gallery-item {
    animation: fadeIn 0.5s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .image-management {
        padding: 1rem;
    }

    .image-gallery-container {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .image-gallery-item .btn-delete {
        opacity: 1;
        transform: scale(1);
    }
}

/* Стили для сообщений загрузки */
#upload-messages {
    margin-top: 1rem;
}

#upload-messages .alert {
    border-radius: 6px;
    border: none;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

#upload-messages .alert-info {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

#upload-messages .alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

#upload-messages .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}