/* =========================================================
 * ArchitectUI HTML Template - Simplified CSS
 * Based on Bootstrap 5
 * ========================================================= */

/* === CSS Variables === */
:root {
    --app-sidebar-width: 280px;
    --app-header-height: 60px;
    /* Hlavní barvy */
    --primary-color: #005AA5;
    --primary-light: #0160AA;
    --primary-dark: #003D73;
    --accent-color: #F9EA66;
    /* Systémové barvy */
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --info-color: #3A8FD1;
    --warning-color: #F9EA66;
    --danger-color: #be303e;
    --light-color: #F2FAFF;
    --dark-color: #003D73;
    /* Pozadí */
    --body-bg: #fbfdff;
    --sidebar-bg: #fff;
    --header-bg: #fff;
    /* Doplňkové */
    --hover-light: #7BBAE5;
    --border-color: #B8D4E8;
}

/* === Base Styles === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.88rem;
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
}

/* === App Container === */
.app-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* === App Header === */
.app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--app-header-height);
    background: var(--header-bg);
    box-shadow: 0 0.46875rem 2.1875rem rgba(4,9,20,.03), 
                0 0.9375rem 1.40625rem rgba(4,9,20,.03), 
                0 0.25rem 0.53125rem rgba(4,9,20,.05), 
                0 0.125rem 0.1875rem rgba(4,9,20,.03);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding-left: var(--app-sidebar-width);
}

.app-header__logo {
    width: var(--app-sidebar-width);
    height: var(--app-header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--header-bg);
    z-index: 1031;
}

.logo-src {
    height: 23px;
    width: 97px;
    background: url('../images/logo-inverse.png') no-repeat center center;
    background-size: contain;
}

.app-header__content {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 1.5rem;
    justify-content: space-between;
}

.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
}

/* === Hamburger Button === */
.hamburger {
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    margin: 0;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* === Search === */
.search-wrapper {
    position: relative;
}

.search-wrapper .search-input {
    border: none;
    background: #f1f4f6;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    width: 200px;
    transition: width 0.3s;
}

.search-wrapper .search-input:focus {
    width: 280px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 90, 165, 0.25);
}

/* === Header Menu === */
.header-menu {
    list-style: none;
    margin: 0 0 0 1.5rem;
    padding: 0;
    display: flex;
}

.header-menu .nav-link {
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-menu .nav-link:hover {
    color: var(--primary-color);
}

.header-menu .nav-link-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* === App Sidebar === */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--app-sidebar-width);
    background: var(--sidebar-bg);
    box-shadow: 0.46875rem 0 2.1875rem rgba(4,9,20,.03), 
                0.9375rem 0 1.40625rem rgba(4,9,20,.03), 
                0.25rem 0 0.53125rem rgba(4,9,20,.05), 
                0.125rem 0 0.1875rem rgba(4,9,20,.03);
    z-index: 1020;
    padding-top: var(--app-header-height);
    overflow-y: auto;
}

.app-sidebar__inner {
    padding: 1.5rem;
}

/* === Vertical Nav Menu === */
.vertical-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vertical-nav-menu .app-sidebar__heading {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
    padding: 0 0.5rem;
    opacity: 0.6;
}

.vertical-nav-menu .app-sidebar__heading:first-child {
    margin-top: 0;
}

.vertical-nav-menu li {
    position: relative;
}

.vertical-nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.5rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.vertical-nav-menu li a:hover {
    background: rgba(0, 90, 165, 0.1);
    color: var(--primary-color);
}

.vertical-nav-menu li a.mm-active {
    background: rgba(0, 90, 165, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.vertical-nav-menu .metismenu-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0.5;
}

.vertical-nav-menu .metismenu-state-icon {
    margin-left: auto;
    opacity: 0.5;
}

.vertical-nav-menu ul {
    list-style: none;
    padding-left: 2rem;
    display: none;
}

.vertical-nav-menu ul.mm-show {
    display: block;
}

.vertical-nav-menu ul li a {
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* === App Main === */
.app-main {
    display: flex;
    flex: 1;
    padding-top: var(--app-header-height);
}

.app-main__outer {
    flex: 1;
    margin-left: var(--app-sidebar-width);
    padding: 30px;
}

.app-main__inner {
    margin: 0 auto;
}

/* === Page Title === */
.app-page-title {
    padding: 4px;
    padding-bottom: 21px;
}

.app-page-title .page-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-page-title .page-title-heading {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
}

.app-page-title .page-title-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, #005AA5 0%, #0160AA 100%);
    color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.46875rem 2.1875rem rgba(0, 90, 165, 0.3);
}

.app-page-title .page-title-subheading {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* === Widget Cards === */
.widget-content {
    padding: 1rem;
    border-radius: 0.25rem;
}

.widget-content-wrapper {
    display: flex;
    align-items: center;
}

.widget-content-left {
    flex: 1;
}

.widget-content-right {
    margin-left: auto;
}

.widget-heading {
    font-weight: 700;
    font-size: 0.88rem;
    opacity: 0.9;
}

.widget-subheading {
    font-size: 0.75rem;
    opacity: 0.6;
}

.widget-numbers {
    font-size: 1.8rem;
    font-weight: 700;
}

/* === Background Gradients === */
.bg-midnight-bloom {
    background-image: linear-gradient(135deg, #003D73 0%, #005AA5 100%) !important;
}

.bg-arielle-smile {
    background-image: linear-gradient(135deg, #005AA5 0%, #F9EA66 100%) !important;
}

.bg-grow-early {
    background-image: linear-gradient(135deg, #28A745 0%, #5DD879 100%) !important;
}

.bg-premium-dark {
    background-image: linear-gradient(135deg, #003D73 0%, #001F3F 100%) !important;
}

.bg-love-kiss {
    background-image: linear-gradient(135deg, #be303e 0%, #F5A3A9 100%) !important;
}

.bg-happy-green {
    background-image: linear-gradient(135deg, #28A745 0%, #5DD879 100%) !important;
}

.bg-sunny-morning {
    background-image: linear-gradient(135deg, #F9EA66 0%, #FFD166 100%) !important;
}

.bg-tempting-azure {
    background-image: linear-gradient(135deg, #7BBAE5 0%, #F2FAFF 100%) !important;
}

.bg-amy-crisp {
    background-image: linear-gradient(135deg, #3A8FD1 0%, #F5A3A9 100%) !important;
}

.bg-mean-fruit {
    background-image: linear-gradient(135deg, #F9EA66 0%, #7BBAE5 100%) !important;
}

.bg-malibu-beach {
    background-image: linear-gradient(135deg, #0160AA 0%, #3A8FD1 100%) !important;
}

.bg-deep-blue {
    background-image: linear-gradient(135deg, #003D73 0%, #0160AA 100%) !important;
}

.bg-night-sky {
    background-image: linear-gradient(135deg, #003D73 0%, #005AA5 100%) !important;
}

.bg-slick-carbon {
    background-image: linear-gradient(135deg, #2C3E50 0%, #34495E 40%, #1C2833 150%) !important;
}

.bg-royal {
    background-image: linear-gradient(135deg, #001F3F 0%, #003D73 100%) !important;
}

.bg-asteroid {
    background-image: linear-gradient(135deg, #001F3F 0%, #003D73 50%, #005AA5 100%) !important;
}

/* === Icon Gradients === */
.icon-gradient {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient.bg-love-kiss {
    background-image: linear-gradient(135deg, #be303e 0%, #F5A3A9 100%);
}

.icon-gradient.bg-happy-green {
    background-image: linear-gradient(135deg, #28A745 0%, #5DD879 100%);
}

.icon-gradient.bg-mean-fruit {
    background-image: linear-gradient(135deg, #F9EA66 0%, #7BBAE5 100%);
}

/* === Cards === */
.card {
    border: none;
    box-shadow: 0 0.46875rem 2.1875rem rgba(4,9,20,.03), 
                0 0.9375rem 1.40625rem rgba(4,9,20,.03), 
                0 0.25rem 0.53125rem rgba(4,9,20,.05), 
                0 0.125rem 0.1875rem rgba(4,9,20,.03);
    border-radius: 0.25rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
}

.card-header-title {
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
}

.card-header-title .header-icon {
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

.card-header-tab {
    justify-content: space-between;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
}

/* === Tabs in Card Header === */
.card-header .nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-header .nav-link {
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.card-header .nav-link:hover,
.card-header .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

/* === List Groups === */
.list-group-flush {
    border-radius: 0;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

.rm-list-borders .list-group-item {
    border: none;
}

/* === Scroll Area === */
.scroll-area-sm {
    max-height: 200px;
    overflow-y: auto;
}

.scroll-area-md {
    max-height: 300px;
    overflow-y: auto;
}

.scroll-area-lg {
    max-height: 400px;
    overflow-y: auto;
}

/* === Progress Bars === */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 0.25rem;
}

/* === Avatars === */
.rounded-circle {
    border-radius: 50% !important;
}

/* === Buttons === */
.btn-shadow {
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1), 
                0 0.0625rem 0.125rem rgba(0, 0, 0, 0.15);
}

.btn-shadow:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15), 
                0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.btn-shadow-primary {
    box-shadow: 0 0.125rem 0.625rem rgba(0, 90, 165, 0.4), 
                0 0.0625rem 0.125rem rgba(0, 90, 165, 0.5);
}

.btn-icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Dropdown === */
.dropdown-menu {
    box-shadow: 0 0.46875rem 2.1875rem rgba(4,9,20,.03), 
                0 0.9375rem 1.40625rem rgba(4,9,20,.03), 
                0 0.25rem 0.53125rem rgba(4,9,20,.05), 
                0 0.125rem 0.1875rem rgba(4,9,20,.03);
    border: none;
    border-radius: 0.25rem;
}

/* === Tables === */
.table-hover tbody tr:hover {
    background-color: rgba(0, 90, 165, 0.05);
}

/* === Utilities === */
.opacity-5 { opacity: 0.5; }
.opacity-6 { opacity: 0.6; }
.opacity-7 { opacity: 0.7; }
.opacity-8 { opacity: 0.8; }
.opacity-9 { opacity: 0.9; }
.opacity-10 { opacity: 1; }

.font-size-sm { font-size: 0.75rem; }
.font-size-md { font-size: 0.88rem; }
.font-size-lg { font-size: 1.1rem; }
.font-size-xlg { font-size: 1.3rem; }

.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* === Footer === */
.app-footer {
    padding: 1rem 1.5rem;
    background: var(--header-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: var(--app-sidebar-width);
}

.app-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .app-header {
        padding-left: 0;
    }
    
    .app-header__logo {
        width: auto;
        position: relative;
    }
    
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .app-sidebar.sidebar-mobile-open {
        transform: translateX(0);
    }
    
    .app-main__outer {
        margin-left: 0;
    }
    
    .app-footer {
        margin-left: 0;
    }
    
    .app-header__mobile-menu {
        display: flex;
        align-items: center;
    }
    
    .header-menu {
        display: none;
    }
}

@media (min-width: 992px) {
    .app-header__mobile-menu,
    .app-header__menu {
        display: none;
    }
}

/* === Closed Sidebar === */
.closed-sidebar .app-sidebar {
    width: 80px;
}

.closed-sidebar .app-sidebar .app-sidebar__heading,
.closed-sidebar .app-sidebar .metismenu-state-icon,
.closed-sidebar .app-sidebar li a span {
    display: none;
}

.closed-sidebar .app-sidebar .metismenu-icon {
    margin: 0 auto;
}

.closed-sidebar .app-header {
    padding-left: 80px;
}

.closed-sidebar .app-header__logo {
    width: 80px;
}

.closed-sidebar .app-main__outer {
    margin-left: 80px;
}

.closed-sidebar .app-footer {
    margin-left: 80px;
}

/* === Chart Container === */
.chart-container {
    position: relative;
    height: 250px;
}

/* === Widget Chart === */
.widget-chart {
    text-align: center;
}

.widget-chart .widget-chart-wrapper {
    position: relative;
}

.widget-chart .widget-numbers {
    font-size: 2.5rem;
}

.widget-chart .widget-subheading {
    margin-top: 0.5rem;
}

/* === Timeline === */
.vertical-timeline {
    position: relative;
    padding-left: 2rem;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.vertical-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.vertical-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.vertical-timeline-item .timeline-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* === Badges === */
.badge-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    display: inline-block;
}

/* === Forms === */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 90, 165, 0.25);
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* === Print === */
@media print {
    .app-sidebar,
    .app-header {
        display: none;
    }
    
    .app-main__outer {
        margin-left: 0;
    }
}