﻿.overview-content-wrapper {
    position: relative;
}

.overview-category-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.overview-category-content.active {
    display: block;
}

.category-placeholder {
    border-radius: 8px;
    padding: 30px;
    text-align: center;

}

.category-placeholder h3 {
    color: var(--ecm-hlObsah-BT-nadpis, rgb(51, 242, 24));
    font-size: 1.1rem;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .overview-navigation {
        padding: 0 10px;
    }
}

.hidden {
    display: none !important;
}

.overview-main-container {
    background: rgb(24, 24, 37);
    border: 1px solid #39395c;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.create-overview-section {
    text-align: center;
    margin-bottom: 40px;
}

.btn-create-overview {
    background: linear-gradient(135deg, rgb(51, 242, 24), rgb(37, 219, 12));
    color: rgb(13, 13, 20);
    border: none;
    border-radius: 12px;
    padding: 5px 15px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(51, 242, 24, 0.3);
    transition: all 0.3s ease;
}

.btn-create-overview:hover {
    background: linear-gradient(135deg, rgb(37, 219, 12), rgb(30, 180, 10));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 242, 24, 0.4);
}

.create-icon {
    font-size: 24px;
    font-weight: bold;
}

.saved-overviews-section {
    margin-top: 40px;
}

.section-title {
    color: #eaeaf5;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgb(51, 242, 24);
    padding-bottom: 10px;
}

.overviews-table-container {
    background: rgb(34, 34, 51);
    border-radius: 8px;
    overflow: hidden;
}

.overviews-table {
    width: 100%;
    border-collapse: collapse;
}

.overviews-table th {
    background: rgb(67, 67, 92);
    color: #eaeaf5;
    padding: 15px;
    font-weight: 600;
    border-bottom: 1px solid #39395c;
}

.overviews-table td {
    padding: 15px;
    color: #eaeaf5;
    border-bottom: 1px solid #39395c;
}

.overviews-table tr:hover {
    background: rgba(67, 67, 92, 0.3);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.private {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-badge.shared {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.action-btn {
    background: transparent;
    border: none;
    color: #eaeaf5;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    margin: 0 2px;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background: rgba(67, 67, 92, 0.5);
}

.wizard-overlay {
    position: fixed;
    top: 2%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.wizard-container {
    background: rgb(24, 24, 37);
    border: 1px solid #39395c;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    height: 550px;
    display: flex;
    flex-direction: column;
    padding: 15px 20px 20px 20px;
    margin: 30px;
    overflow: auto;
}

.wizard-progress {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.progress-bar {
    background: rgb(67, 67, 92);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 10px;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, rgb(51, 242, 24), rgb(37, 219, 12));
    height: 100%;
    border-radius: 2px;
    width: 16.66%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgb(67, 67, 92);
    color: #eaeaf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
}

.step.active {
    background: rgb(51, 242, 24);
    color: rgb(13, 13, 20);
}

.step.completed {
    background: rgb(37, 219, 12);
    color: rgb(13, 13, 20);
}

.wizard-content {
    flex: 1;
    overflow-y: visible;
    margin-bottom: 20px;
}

.wizard-step {
    display: none;
    height: 100%;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-title {
    color: #eaeaf5;
    font-size: 18px;
    margin-bottom: 6px;
    text-align: center;
    flex-shrink: 0;
}

.wizard-subtitle {
    color: #bfbfdb;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
    flex-shrink: 0;
}

.wizard-step-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.overview-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.overview-type-card {
    background: rgb(34, 34, 51);
    border: 2px solid #39395c;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overview-type-card:hover {
    border-color: rgb(51, 242, 24);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(51, 242, 24, 0.2);
}

.overview-type-card.selected {
    border-color: rgb(51, 242, 24);
    background: rgba(51, 242, 24, 0.1);
}

.type-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.overview-type-card h3 {
    color: #eaeaf5;
    font-size: 14px;
    margin-bottom: 6px;
}

.selection-container {
    background: rgb(34, 34, 51);
    border: 1px solid #39395c;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filter-section {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.wizard-filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #39395c;
    border-radius: 6px;
    background: rgb(19, 19, 29);
    color: #eaeaf5;
    font-size: 13px;
}

.wizard-filter-input::placeholder {
    color: #bfbfdb;
    font-style: italic;
}

.wizard-select {
    width: 100%;
    flex: 1;
    min-height: 150px;
    border: 1px solid #39395c;
    border-radius: 6px;
    padding: 8px;
    background: rgb(19, 19, 29);
    color: #eaeaf5;
    font-size: 13px;
    margin-bottom: 10px;
}

.wizard-select option {
    padding: 6px;
    background: rgb(19, 19, 29);
    color: #eaeaf5;
}

.wizard-select option:checked {
    background-color: rgb(51, 242, 24);
    color: rgb(13, 13, 20);
}

.selection-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-select-all, .btn-clear-all {
    padding: 8px 16px;
    border: 1px solid #39395c;
    border-radius: 4px;
    background: rgb(67, 67, 92);
    color: #eaeaf5;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-select-all:hover, .btn-clear-all:hover {
    background: rgb(43, 42, 64);
}

.wizard-settings {
    background: rgb(34, 34, 51);
    border: 1px solid #39395c;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-group label {
    color: #eaeaf5;
    font-size: 13px;
    font-weight: 500;
}

.setting-group select {
    padding: 8px;
    border: 1px solid #39395c;
    border-radius: 4px;
    background: rgb(19, 19, 29);
    color: #eaeaf5;
    font-size: 13px;
}

.custom-date-display {
    padding: 8px;
    border: 1px solid #39395c;
    border-radius: 4px;
    background: rgb(19, 19, 29);
    color: #eaeaf5;
    font-size: 13px;
    cursor: pointer;
    display: block;
}

.wizard-additional-options {
    border-top: 1px solid #39395c;
    padding-top: 15px;
    margin-top: auto;
}

.additional-options-btn {
    background: transparent;
    border: 1px solid #39395c;
    color: #eaeaf5;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 13px;
}

.additional-options-btn:hover {
    background: rgba(67, 67, 92, 0.3);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.additional-options-btn.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.additional-options {
    margin-top: 10px;
    padding: 10px;
    background: rgba(67, 67, 92, 0.2);
    border-radius: 4px;
    color: white;
    text-align: left;
}

.wizard-actions {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #39395c;
}

.btn-cancel {
    background: transparent;
    color: #eaeaf5;
    border: 1px solid #39395c;
}

.btn-cancel:hover {
    background: rgba(67, 67, 92, 0.3);
    color: white;
}

.btn-back {
    background: rgb(67, 67, 92) !important;
    color: #eaeaf5 !important;
    font-size: 13px !important;
    border: 1px solid #39395c;
    padding: 8px 16px !important;
}

.btn-back:hover {
    background: rgb(43, 42, 64) !important;
    color: #eaeaf5 !important;
}

.btn-next, .btn-generate, .btn-save-generate, .btn-export {
    background: rgb(51, 242, 24);
    color: rgb(13, 13, 20);
    border: 1px solid rgb(51, 242, 24);
    padding: 8px 8px;
}

.btn-next:hover, .btn-generate:hover, .btn-save-generate:hover, .btn-export:hover {
    background: rgb(37, 219, 12);
    border-color: rgb(37, 219, 12);
}

.btn-primary {
    background: rgb(51, 242, 24);
    color: rgb(13, 13, 20);
    border: 1px solid rgb(51, 242, 24);
}

.btn-primary:hover {
    background: rgb(37, 219, 12);
    border-color: rgb(37, 219, 12);
}

.btn-secondary {
    background: rgb(67, 67, 92);
    color: #eaeaf5;
    border: 1px solid #39395c;
}

.btn-secondary:hover {
    background: rgb(43, 42, 64);
}

.save-dialog-container {
    background: rgb(24, 24, 37);
    border: 1px solid #39395c;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
}

.save-dialog-container h3 {
    color: #eaeaf5;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
}

.save-form {
    margin-bottom: 25px;
}

.save-form .form-group {
    margin-bottom: 20px;
}

.save-form .form-group label {
    display: block;
    color: #eaeaf5;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #39395c;
    border-radius: 6px;
    background: rgb(19, 19, 29);
    color: #eaeaf5;
    font-size: 14px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgb(51, 242, 24);
}

.checkbox-row label {
    color: white;
    padding-left: 5px;
}

.save-dialog-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.save-dialog-actions .btn {
    flex: 1;
}

#saveDialogModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#saveDialogModal .save-dialog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    color: white;
}

#saveDialogModal .save-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

#datePickerModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#datePickerModal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    color: white;
    background-color: transparent;
}

#datePickerModal .modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .wizard-container {
        width: 95%;
        height: 80vh;
        margin: 10px;
        padding: 15px;
    }

    .overview-types {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        flex-direction: column;
        gap: 10px;
    }

    .wizard-actions .btn {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.excel-table-container {
    background: rgb(34, 34, 51);
    border-radius: 8px;
    overflow: auto;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    background: transparent;
}

.excel-header-row {
    background: rgb(67, 67, 92);
}

.excel-header-cell {
    background: rgb(67, 67, 92);
    color: #eaeaf5;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #39395c;
    border-bottom: 2px solid #39395c;
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-data-row {
    transition: background-color 0.2s ease;
}

.excel-data-row:nth-child(even) {
    background: rgba(67, 67, 92, 0.1);
}

.excel-data-row:hover {
    background: rgba(67, 67, 92, 0.3);
}

.excel-data-cell {
    padding: 10px 15px;
    color: #eaeaf5;
    border: 1px solid #39395c;
    vertical-align: top;
    line-height: 1.4;
}

.excel-numeric-cell {
    text-align: right;
    font-weight: 500;
}

@media (max-width: 768px) {
    .excel-table-container {
        margin: 10px 0;
        overflow-x: auto;
    }

    .excel-table {
        min-width: 600px;
        font-size: 12px;
    }

    .excel-header-cell,
    .excel-data-cell {
        padding: 8px 10px;
    }
}

.excel-table .excel-data-cell.highlight {
    background: rgba(51, 242, 24, 0.1);
    color: rgb(51, 242, 24);
}

.excel-table .excel-data-cell.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.excel-table .excel-data-cell.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.overview-type-card {
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}

.overview-type-card.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}