/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ISMS2Go Horizontal Navigation */
.isms2go-horizontal-nav {
    width: 100%;
    margin-top: 1rem;
    order: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
}

.isms2go-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.isms2go-nav-list li {
    margin: 0;
    border: none;
}

.isms2go-nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

.isms2go-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.isms2go-nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    opacity: 1;
    font-weight: 600;
}

@media (max-width: 768px) {
    .isms2go-horizontal-nav {
        order: 2;
        margin-top: 0.5rem;
    }
    
    .isms2go-nav-list {
        gap: 0.25rem;
    }
    
    .isms2go-nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Navigation */
.main-nav {
    margin-top: 1rem;
    width: 100%;
    position: relative;
    order: 4;
}

/* Header Auth Button */
.header-auth-button {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
    z-index: 1002;
    gap: 0.5rem;
}

@media (min-width: 769px) {
    .header-auth-button {
        margin-right: 3.5rem;
    }
}

@media (max-width: 768px) {
    .header-auth-button {
        margin-right: 0.5rem;
        flex-wrap: wrap;
    }
    
    .header-auth-button span {
        font-size: 0.75rem;
    }
}

.menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--white);
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1003;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    list-style: none;
    margin: 0;
    padding: 5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
}

.nav-list.menu-open {
    transform: translateX(0);
    pointer-events: auto;
}

.nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: var(--white);
    font-weight: 600;
}

/* Submenu Styles */
.nav-item-with-submenu {
    position: relative;
}

.submenu-indicator {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item-with-submenu:hover .submenu,
.nav-item-with-submenu:focus-within .submenu {
    max-height: 500px;
}

.submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu .nav-link {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 0.9rem;
}

.submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.7);
}

.submenu .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--white);
}

.submenu .nav-link[href*="logout"] {
    color: #ffcccc !important;
}

.submenu .nav-link[href*="logout"]:hover {
    background-color: rgba(255, 204, 204, 0.2);
    border-left-color: #ffcccc;
}

/* Submenu in collapsed menu */
.nav-list.menu-collapsed .submenu {
    position: static;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.nav-list.menu-collapsed .nav-item-with-submenu:hover .submenu,
.nav-list.menu-collapsed .nav-item-with-submenu:focus-within .submenu {
    max-height: 500px;
}

/* Overlay removed - no longer needed */

/* Hover effect for main-nav - show menu preview */
.main-nav:hover .nav-list:not(.menu-open) {
    transform: translateX(calc(100% - 250px));
    pointer-events: auto;
    z-index: 1002;
}

.main-nav:hover .nav-list:not(.menu-open) .nav-link {
    opacity: 0.9;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* When hovering over preview, clicking a link opens menu fully */
.main-nav:hover .nav-list:not(.menu-open) .nav-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
}

/* When menu is open via click, don't close on mouse leave */
.main-nav .nav-list.menu-open {
    pointer-events: auto;
    z-index: 1002;
}

/* Ensure links are always clickable when menu is visible */
.nav-list .nav-link {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

/* Make sure menu container doesn't block clicks */
.nav-list {
    pointer-events: auto !important;
}

.nav-list li {
    pointer-events: auto;
}

/* For very small screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu-toggle {
        position: relative;
        margin-left: auto;
        top: auto;
        transform: none;
    }
    
    .nav-list {
        max-width: 100%;
        padding-top: 4rem;
    }
    
    .main-nav:hover .nav-list:not(.menu-open) {
        transform: translateX(100%);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    display: block;
}

.content-section {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section h4 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card[onclick]:hover {
    background: linear-gradient(135deg, #e6f2ff 0%, #d1e7ff 100%);
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Governance textarea styles */
.governance-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.governance-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.save-btn {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-btn:hover {
    background: var(--secondary-color);
}

.discard-btn {
    padding: 0.5rem 1.5rem;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.discard-btn:hover {
    background: #5a6c7d;
}

/* Version info styles */
.version-info {
    position: relative;
}

.version-entry {
    position: relative;
}

.version-tooltip {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.version-entry:hover .version-tooltip {
    pointer-events: auto;
}

/* Section toggle styles */
.section-toggle {
    user-select: none;
}

.section-toggle:hover {
    opacity: 0.8;
}

.section-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.section-arrow {
    flex-shrink: 0;
}

.uploaded-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Diagram Styles */
.diagram-container {
    margin: 2rem 0;
    text-align: center;
}

.connection-diagram {
    margin: 2rem 0;
}

.diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.diagram-node {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

.diagram-node.center {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
}

.diagram-connections {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.diagram-description {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

/* PDCA Cycle */
.pdca-cycle {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.pdca-item {
    background: var(--accent-color);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.pdca-item:hover {
    transform: scale(1.1);
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
}

/* Risk Matrix */
.risk-matrix-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.risk-matrix {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    background: var(--white);
}

.risk-matrix th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.risk-matrix td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.risk-low {
    background-color: #c6f6d5;
    color: #22543d;
}

.risk-medium {
    background-color: #feebc8;
    color: #7c2d12;
}

.risk-high {
    background-color: #fed7d7;
    color: #742a2a;
}

.risk-critical {
    background-color: #fc8181;
    color: #ffffff;
}

.matrix-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* RACI Matrix */
.raci-matrix-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.raci-matrix {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    background: var(--white);
    font-size: 0.9rem;
}

.raci-matrix th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.raci-matrix th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 10;
    background: var(--primary-color);
}

.raci-matrix td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 50px;
}

.raci-matrix tbody th {
    background: var(--secondary-color);
    color: var(--white);
    text-align: left;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 5;
}

.raci-a {
    background-color: #dc2626;
    color: #ffffff;
}

.raci-r {
    background-color: #2563eb;
    color: #ffffff;
}

.raci-c {
    background-color: #f59e0b;
    color: #ffffff;
}

.raci-i {
    background-color: #6b7280;
    color: #ffffff;
}

.raci-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    justify-content: center;
}

.raci-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.raci-legend-item span:first-child {
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Asset Categories */
.asset-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.asset-category {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.asset-category ul {
    list-style: none;
    margin-top: 1rem;
}

.asset-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.asset-category li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Asset Process */
.asset-process {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.asset-step {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.asset-step h4 {
    margin-bottom: 0.5rem;
}

.asset-step p {
    margin: 0;
    color: var(--text-light);
}

/* Classification Table */
.classification-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    background: var(--white);
}

.info-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.classification-label {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.classification-label.public {
    background-color: #c6f6d5;
    color: #22543d;
}

.classification-label.internal {
    background-color: #bee3f8;
    color: #2c5282;
}

.classification-label.confidential {
    background-color: #feebc8;
    color: #7c2d12;
}

.classification-label.secret {
    background-color: #fed7d7;
    color: #742a2a;
}

/* BCM Styles */
.bcm-cycle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bcm-phase {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.bcm-phase h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.bcm-phase p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.bcm-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.metric-card h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.metric-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.criticality-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.criticality-item {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid;
}

.criticality-item.critical {
    background-color: #fed7d7;
    border-left-color: #f56565;
}

.criticality-item.high {
    background-color: #feebc8;
    border-left-color: #ed8936;
}

.criticality-item.medium {
    background-color: #fefcbf;
    border-left-color: #d69e2e;
}

.criticality-item.low {
    background-color: #c6f6d5;
    border-left-color: #48bb78;
}

.emergency-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.measure-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.measure-item h4 {
    margin-bottom: 0.5rem;
}

.measure-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Connection List */
.connection-list {
    list-style: none;
    margin-top: 1rem;
}

.connection-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
}

.connection-list strong {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .logo {
        flex: 1;
    }

    .main-nav {
        width: auto;
        margin-top: 0;
    }
    
    .menu-toggle {
        position: relative;
        top: auto;
        transform: none;
    }

    .nav-list.menu-collapsed {
        max-width: 100%;
        left: 0;
        right: 0;
        border-radius: 0 0 8px 8px;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .diagram-connections {
        flex-direction: column;
    }

    .pdca-cycle {
        flex-direction: column;
        align-items: center;
    }

    .raci-matrix {
        font-size: 0.75rem;
    }

    .raci-matrix th,
    .raci-matrix td {
        padding: 0.5rem 0.25rem;
    }

    .raci-legend {
        flex-direction: column;
        align-items: flex-start;
    }
}

