/* MY PROVINCE DASHBOARD - Documentation Styles */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.docs-header {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.docs-nav {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.docs-nav .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.docs-nav .nav-link:hover,
.docs-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Submenu Styles */
.nav-submenu {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-submenu.show {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.nav-submenu .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.nav-link-sm {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
}

/* Parent menu items with submenu */
.nav-link-parent {
    cursor: pointer;
    position: relative;
}

.nav-link-parent::after {
    content: '\f107'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.nav-link-parent.expanded::after {
    transform: rotate(180deg);
}

.docs-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.docs-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.docs-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.docs-card-body {
    padding: 2rem;
    background: white;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 1rem 0;
    white-space: pre-wrap;
}

/* Sicherheitsdokumentation Styles */
.security-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.security-section:last-child {
    border-bottom: none;
}

.process-flow {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.step-number {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #007bff;
    display: block;
    margin-bottom: 0.5rem;
}

.roles-table .table {
    margin-top: 1rem;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-applicant {
    background: #ffc107;
    color: #212529;
}

.role-candidate {
    background: #17a2b8;
    color: white;
}

.role-guest {
    background: #6c757d;
    color: white;
}

.role-moderator {
    background: #28a745;
    color: white;
}

.role-admin {
    background: #dc3545;
    color: white;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #28a745;
    color: white;
}

.status-inactive {
    background: #6c757d;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-suspended {
    background: #dc3545;
    color: white;
}

.code-flow {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.code-flow ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.code-flow ol li {
    counter-increment: step-counter;
    margin: 1.5rem 0;
    position: relative;
    padding-left: 3rem;
}

.code-flow ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.files-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.file-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.file-card h5 {
    color: #007bff;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.file-card code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.admin-process {
    margin: 1rem 0;
}

.status-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-step {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arrow {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
}

.role-management,
.status-management {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

#loading-indicator {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#error-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}