/* MasterTherm Tech Portal - Module-specific Stylesheet */

:root {
    --beige: #f5e6ca;
}

/* Sub-navigation breadcrumb */
.app-subnav .breadcrumb {
    margin: 0;
    padding: 5px 0;
}

.app-subnav .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.app-subnav .breadcrumb-item.active {
    color: var(--white);
}

.app-subnav .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Login page - bez headeru */
body.login-page {
    background-color: var(--light-grey);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.login-page .login-header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-red);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

body.login-page .login-header .header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.login-page .login-header .logo img {
    max-height: 50px;
}

body.login-page .login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

body.login-page .login-box {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

body.login-page .login-box h2 {
    color: var(--dark-grey);
    margin-bottom: 25px;
    text-align: center;
}

body.login-page .login-box .form-group label {
    color: var(--dark-grey);
    font-weight: 500;
}

body.login-page .login-box .btn-primary {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

body.login-page .language-switch {
    text-align: center;
    margin-top: 20px;
}

body.login-page .language-switch a {
    color: var(--dark-grey);
    text-decoration: none;
}

body.login-page .language-switch a:hover {
    color: var(--primary-red);
}

/* Cards */
.hp-type-card,
.error-code-card,
.category-card,
.section-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ddd;
}

.hp-type-card:hover,
.error-code-card:hover,
.category-card:hover,
.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.hp-type-card .card-body,
.category-card .card-body,
.section-card .card-body {
    color: var(--dark-grey);
}

.section-card.border-primary .card-body .card-title,
.section-card.border-primary .card-body > i {
    color: var(--bs-primary) !important;
}

.error-code-card .badge {
    font-size: 0.9rem;
}

/* Solution cards */
.solution-card .card-header {
    cursor: pointer;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.solution-card .card-header:hover {
    background: var(--light-grey);
}

.solution-card .toggle-icon {
    transition: transform 0.3s;
    color: var(--primary-red);
}

.solution-card .card-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Alerts */
.alert-info {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.alert-warning,
.text-warning {
    color: #f57c00 !important;
}

/* Card styles */
.app-content .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.app-content .card-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
}

/* Error detail - static templates styles */
.error-detail {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-detail > p.text-center {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.check-point {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.error-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--light-grey);
    cursor: pointer;
    transition: background 0.2s;
}

.error-toggle:hover {
    background: #e0e0e0;
}

.error-toggle strong {
    color: var(--dark-grey);
    font-weight: 600;
}

.error-toggle i {
    color: var(--primary-red);
    transition: transform 0.3s;
}

.solution-content {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
    display: none;
}

.solution-content p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

.solution-content a {
    color: var(--primary-red);
    font-weight: 600;
}

/* Info box - montaz static templates */
.info-box {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-box-content {
    padding: 25px;
}

.info-box-content h2 {
    color: var(--primary-red);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-grey);
}

.connection-content {
    color: #555;
    line-height: 1.7;
}

.connection-section {
    margin-bottom: 20px;
}

.connection-section ul {
    margin-left: 20px;
}

.connection-section li {
    margin-bottom: 8px;
}

/* Error grid - list templates */
.error-grid .error-item {
    display: block;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--dark-grey);
}

.error-grid .error-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.error-grid .error-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.error-grid .error-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.error-grid .error-name {
    font-size: 0.95rem;
    color: #666;
}

/* Issue grid - vseobecne templates */
.issue-grid .error-item {
    display: block;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--dark-grey);
}

.issue-grid .error-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Terminal connection sections - popis svorkovnice */
.terminal-connection-section {
    margin-bottom: 30px;
}

.terminal-connection-section h4 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #176B87;
    font-weight: 600;
}

.terminal-description {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #176B87;
    margin-bottom: 20px;
}

.terminal-line {
    padding: 5px 0;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.6;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
}

.terminal-line:hover {
    background-color: #edf3f6;
}

.terminal-number {
    font-weight: bold;
    min-width: 100px;
    color: #176B87;
    padding-right: 10px;
}

.terminal-description-text {
    flex: 1;
}

.warning-note {
    color: #721c24;
    background-color: #f8d7da;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.warning-note i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .error-detail {
        padding: 15px;
    }

    .error-toggle {
        padding: 12px 15px;
    }

    .solution-content {
        padding: 12px 15px;
    }

    .terminal-line {
        flex-direction: column;
    }

    .terminal-number {
        min-width: 100%;
        margin-bottom: 3px;
    }

    .terminal-description {
        padding: 10px;
    }

    .terminal-description-text {
        padding-left: 10px;
    }
}

/* Print styles for terminal documentation */
@media print {
    .terminal-description {
        border: 1px solid #ddd;
        border-left: 4px solid #176B87;
        break-inside: avoid;
    }

    .terminal-line {
        break-inside: avoid;
    }

    .terminal-number {
        color: #000;
    }

    .warning-note {
        border: 1px solid #721c24;
        color: #000;
        background-color: #fff;
    }
}
