/* Základní styly pro aplikaci CeranoBot */

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Styly pro navigaci */
.navbar-brand {
    font-weight: bold;
}

/* Přepsání barev bootstrapu - z modré na černou */
.bg-primary {
    background-color: #212529 !important;
}

.btn-primary {
    background-color: #212529 !important;
    border-color: #212529 !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.text-primary {
    color: #212529 !important;
}

.sidebar .nav-link.active {
    background-color: #212529 !important;
    color: white !important;
}

/* Skrývatelný sidebar */
.sidebar {
    transition: all 0.3s ease-in-out;
    width: 18rem;
    position: fixed;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-collapsed {
    margin-left: -18rem;
    width: 0;
    overflow: hidden;
}

.main-expanded {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Hlavní obsah */
#main-content {
    transition: all 0.3s ease-in-out;
    width: calc(100% - 18rem);
    margin-left: 17.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

#sidebar-toggle {
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 8px 12px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

#sidebar-toggle:hover {
    color: white;
}

/* Přepsání odkazů */
a {
    color: #212529;
}

a:hover {
    color: #000000;
}

/* Badges a další prvky */
.badge.bg-primary {
    background-color: #212529 !important;
}

/* Formuláře */
.form-control:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.25);
}

/* Styly pro karty */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 500;
}

/* Styly pro tabulky */
.table th {
    background-color: #f8f9fa;
}

/* Styly pro formuláře */
.form-label {
    font-weight: 500;
}

/* Styly pro chybové stránky */
.error-page {
    padding: 3rem 0;
}

/* Progress bar */
.progress-bar {
    background-color: #212529 !important;
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responzivní úpravy pro sidebar */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        position: relative;
    }
    
    #main-content {
        width: 100%;
        margin-left: 0;
    }
    
    .main-expanded {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Další elementy Bootstrapu */
.btn-outline-primary {
    color: #212529 !important;
    border-color: #212529 !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: #212529 !important;
    color: #fff !important;
}

/* Dropdowns */
.dropdown-item.active, .dropdown-item:active {
    background-color: #212529 !important;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: white !important;
}

.page-link {
    color: #212529 !important;
}

.page-link:hover {
    color: #000 !important;
}

/* Nav tabs */
.nav-tabs .nav-link.active {
    color: #212529 !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}

.nav-pills .nav-link.active {
    background-color: #212529 !important;
}

/* List group */
.list-group-item.active {
    background-color: #212529 !important;
    border-color: #212529 !important;
}

/* Alerts */
.alert-primary {
    background-color: rgba(33, 37, 41, 0.15) !important;
    border-color: rgba(33, 37, 41, 0.2) !important;
    color: #212529 !important;
}


.fa-sun {
    color: #f8f9fa;
}

.fa-moon {
    color: #f8f9fa;
}

/* Custom paleta barev - výrazně tmavý modrý základ */
.btn-info, a.btn-info {
    background-color: hsl(210, 11%, 15%) !important;
    border-color: #212529 !important;
    color: #ffffff !important;
}

.btn-info:hover, a.btn-info:hover,
.btn-info:focus, a.btn-info:focus,
.btn-info:active, a.btn-info:active {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}


.palette-main-dark {
    background-color: #222831 !important;
    color: white !important;
}

.section-header {
    background-color: transparent !important;
    color: #222831 !important;
    font-weight: bold;
    padding-bottom: 0.5rem;
}

.palette-secondary-dark {
    background-color: #393E46 !important;
    color: white !important;
}

.palette-accent {
    background-color: #00ADB5 !important;
    color: white !important;
}

.palette-light {
    background-color: #EEEEEE !important;
    color: #222831 !important;
}

.btn-palette-dark {
    background-color: #222831 !important;
    border-color: #222831 !important;
    color: white !important;
}

.btn-palette-dark:hover {
    background-color: #1a1f25 !important;
    border-color: #1a1f25 !important;
}

.btn-palette-secondary {
    background-color: #393E46 !important;
    border-color: #393E46 !important;
    color: white !important;
}

.btn-palette-secondary:hover {
    background-color: #2d3239 !important;
    border-color: #2d3239 !important;
}

.btn-palette-accent {
    background-color: #00ADB5 !important;
    border-color: #00ADB5 !important;
    color: white !important;
}

.btn-palette-accent:hover {
    background-color: #008e95 !important;
    border-color: #008e95 !important;
}

.palette-badge-storage {
    background-color: #EEEEEE !important;
    color: #222831 !important;
}

.palette-badge-issue {
    background-color: #00ADB5 !important;
    color: white !important;
}

.palette-badge-return {
    background-color: #393E46 !important;
    color: white !important;
}

.palette-badge-remove {
    background-color: #222831 !important;
    color: white !important;
}

/* Palety barev pro CeranoBot */

/* Základní barevné palety */
.palette-main-dark {
    color: #212529;
}

.section-header {
    background-color: #f8f9fa;
    border-left: 4px solid #212529;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.palette-secondary-dark {
    color: #6c757d;
}

.palette-accent {
    color: #f39c12;
}

.palette-light {
    color: #f8f9fa;
}

.btn-palette-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.btn-palette-dark:hover {
    color: #fff;
    background-color: #000;
}

.btn-palette-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-palette-secondary:hover {
    color: #fff;
    background-color: #5a6268;
}

.btn-palette-accent {
    color: #212529;
    background-color: #f39c12;
    border-color: #f39c12;
}

.btn-palette-accent:hover {
    color: #212529;
    background-color: #e08e0b;
}

/* Barevné označení pro skladové stavy */
.palette-badge-storage {
    color: #fff !important;
    background-color: #27ae60 !important;
}

.palette-badge-issue {
    color: #fff !important;
    background-color: #e74c3c !important;
}

.palette-badge-return {
    color: #212529 !important;
    background-color: #f1c40f !important;
}

.palette-badge-remove {
    color: #fff !important;
    background-color: #c0392b !important;
}

/* Třídy pro stránku návrhů přesunů */
.border-left {
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.palette-dashboard-box-primary {
    color: white;
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.palette-dashboard-box-success {
    color: white;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.palette-dashboard-box-warning {
    color: #212529;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.palette-dashboard-box-secondary {
    color: white;
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

.small-box {
    border-radius: 0.25rem;
    position: relative;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.small-box .inner {
    padding: 15px;
}

.small-box .icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    opacity: 0.3;
}

.small-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    white-space: nowrap;
    padding: 0;
}

.small-box p {
    font-size: 1rem;
}

/* Speciální styly pro tabulky v transfer_suggestions */
.locations-container {
    max-height: 100px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
}

/* Styly pro lokace */
.location-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Styly pro footer text */
.developed-by {
    font-size: 0.9rem;
    color: #6c757d;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    padding: 4px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.developed-by:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.cerano-brand {
    font-weight: 700;
    color: #212529;
    background: linear-gradient(45deg, #222831, #00ADB5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 2px;
}

/* Dark mode pro footer */


/* Styly pro komunikaci v reklamacích */
.message-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

/* Zprávy od zaměstnanců - světlé šedé pozadí místo tmavého bg-primary */
.message-item.bg-primary.bg-opacity-10 {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-left: 4px solid #007bff;
}

/* Zprávy od zákazníků - bílé pozadí */
.message-item.bg-light {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-left: 4px solid #6c757d;
}

/* Interní poznámky - žluté pozadí */
.message-item.bg-warning.bg-opacity-10 {
    background-color: #fff3cd !important;
    color: #212529 !important;
    border-left: 4px solid #ffc107;
}

/* Zajištění čitelnosti textu ve všech zprávách */
.message-item .message-header,
.message-item .message-content,
.message-item .message-sender,
.message-item .message-time {
    color: #212529 !important;
}

/* Časové údaje zůstanou šedé ale čitelné */
.message-item .message-time.text-muted {
    color: #6c757d !important;
}

/* Dark mode styly pro komunikaci */

/* Styly pro edit ikony (inline editing) */
.edit-trigger-btn {
    cursor: pointer !important;
    transition: all 0.2s ease-in-out;
    border-radius: 50% !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    vertical-align: middle;
}

.edit-trigger-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-trigger-btn:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px;
    background-color: rgba(0, 123, 255, 0.1) !important;
}

.edit-trigger-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.edit-trigger-btn .fas.fa-edit {
    color: #6c757d !important;
    font-size: 0.875rem !important;
    transition: color 0.2s ease-in-out;
}

.edit-trigger-btn:hover .fas.fa-edit {
    color: #495057 !important;
}

.edit-trigger-btn:focus .fas.fa-edit {
    color: #007bff !important;
}


/* Touch target pro mobilní zařízení */
@media (max-width: 768px) {
    .edit-trigger-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0.5rem !important;
    }
    
    .edit-trigger-btn .fas.fa-edit {
        font-size: 1rem !important;
    }
}

/* Responzivní úpravy pro malé obrazovky */
@media (max-width: 576px) {
    .edit-trigger-btn {
        min-width: 48px !important;
        min-height: 48px !important;
    }
}

/* Responzivní úpravy pro modály na mobilních zařízeních */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-footer {
        padding: 1rem !important;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .form-text {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    .modal-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

/* Konzistentní spacing pro řádky s edit ikonami */
.table td:has(.edit-trigger-btn) {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    vertical-align: middle !important;
}

/* Zarovnání content a edit ikon v table cells */
.table td .d-inline-block + .edit-trigger-btn {
    margin-left: 0.25rem;
}

/* Skupinové pozicování pro badge a edit ikonu */
.table td > button.edit-trigger-btn {
    vertical-align: baseline;
    margin-left: 0rem;
}

/* Speciální styling pro štítky section */
.table td .d-flex.align-items-center .edit-trigger-btn {
    margin-left: 0.5rem;
    margin-top: 0;
}

/* Custom utility pro px-4 override */
.px-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
} 