/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Progressive Disclosure - Client Interface */
.client-interface {
    margin: 2rem 0;
}

.interface-section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.interface-section[open] {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

.section-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-content {
    padding: 1.5rem;
    background: #fafbfc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-card h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.feature-card li {
    margin-bottom: 0.5rem;
    color: #5a6c7d;
}

.workflow-steps {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
    margin: 1.5rem 0;
}

.workflow-steps h5 {
    margin: 0 0 1rem 0;
    color: #27ae60;
    font-size: 1.1rem;
    font-weight: 600;
}

.workflow-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.workflow-steps li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.project-example {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border: 2px dashed #3498db;
    margin: 1.5rem 0;
}

.project-example h5 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.billing-workflow {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #e67e22;
    margin: 1.5rem 0;
}

.billing-workflow h5 {
    margin: 0 0 1rem 0;
    color: #e67e22;
    font-size: 1.1rem;
    font-weight: 600;
}

.invoice-status {
    margin: 1.5rem 0;
}

.invoice-status h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-card {
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: white;
}

.status-card.overdue {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.status-card.pending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.status-card.paid {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.advanced-feature {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid #bdc3c7;
    transition: all 0.3s ease;
}

.advanced-feature:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
}

.advanced-feature h5 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.reference-links {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #9b59b6;
    margin: 1.5rem 0;
}

.reference-links h5 {
    margin: 0 0 1rem 0;
    color: #9b59b6;
    font-size: 1.1rem;
    font-weight: 600;
}

.reference-links ul {
    margin: 0;
    padding-left: 1.25rem;
}

.reference-links li {
    margin-bottom: 0.5rem;
}

.pro-features {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.pro-features a {
    color: #f8f9fa;
    text-decoration: underline;
}

.pro-features a:hover {
    color: white;
}

.settings-connection {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.settings-connection h4 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.settings-connection p {
    margin: 0 0 1rem 0;
    opacity: 0.95;
}

.settings-connection a {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.settings-connection a:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #34495e;
    transform: scale(1.05);
}

/* Responsive Design - Tablet */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 1.5rem;
        padding-left: 4rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    main {
        padding: 1.5rem;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 480px) {
    .section-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .feature-card,
    .workflow-steps,
    .billing-workflow,
    .project-example,
    .advanced-feature,
    .reference-links {
        padding: 1rem;
    }
    
    .settings-connection {
        padding: 1rem;
        text-align: left;
    }
    
    .settings-connection h4 {
        font-size: 1.1rem;
    }
    
    .settings-connection a {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }
    
    header {
        padding: 1rem;
        padding-left: 4rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .section-header {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .interface-section {
        border: 2px solid #000;
    }
    
    .feature-card,
    .workflow-steps,
    .billing-workflow {
        border-left-width: 6px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .section-header,
    .menu-toggle,
    .settings-connection a,
    .advanced-feature {
        transition: none;
    }
    
    .settings-connection a:hover {
        transform: none;
    }
}

/* Focus Indicators for Accessibility */
.section-header:focus,
.menu-toggle:focus,
.settings-connection a:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar,
    .menu-toggle {
        display: none;
    }
    
    .main-container {
        margin-left: 0;
    }
    
    .interface-section {
        break-inside: avoid;
        border: 1px solid #000;
    }
    
    .section-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f6fa;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: #2c3e50;
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
    background-color: #1a252f;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid #34495e;
}

.nav-menu li a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    background-color: #34495e;
    padding-left: 2rem;
}

.nav-menu li a.active {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* Main Content Area */
.main-container {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #3498db;
    color: white;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
}

header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    line-height: 1.5;
}

main {
    flex: 1;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    width: 100%;
}

/* Typography */
h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #555;
}

li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th, table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Special Boxes */
.tip {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.tip strong {
    color: #1976d2;
}

.best-practice {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.best-practice strong {
    color: #388e3c;
}

/* Images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-grid img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    color: #666;
    border-top: 1px solid #e9ecef;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    header {
        padding-left: 4rem;
    }
    
    main {
        margin: 1rem;
        padding: 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a252f;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #4a5f7a;
}

/* Page Transition Effect */
main {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Grid for Home Page */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.content-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Search Functionality */
.search-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.search-result-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.search-results-header {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.search-result-category {
    font-size: 0.8rem;
    color: #999;
    margin: 0.5rem 0 0 0;
    padding: 0.2rem 0.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: inline-block;
}

/* Quick Reference Styles */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-indicator {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 2rem;
}

.quick-urls {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

.quick-urls code {
    background-color: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

kbd {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

/* Marketing Strategy Access Button */
.marketing-access {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.marketing-access::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.marketing-access h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.marketing-access p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.marketing-button-container {
    position: relative;
    z-index: 1;
}

.marketing-button {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    gap: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.marketing-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.marketing-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    text-align: left;
}

.button-text strong {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.button-text small {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.2;
}

.button-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.marketing-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Responsive adjustments for marketing button */
@media (max-width: 768px) {
    .marketing-access {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .marketing-button {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .marketing-access h3 {
        font-size: 1.3rem;
    }
    
    .marketing-access p {
        font-size: 1rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e1e8ed;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb-item.active {
    color: #3498db;
    font-weight: 500;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #3498db;
}

/* Enhanced Search Functionality */
.search-filters {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Quick Actions Dashboard */
.quick-actions-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quick-actions-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.action-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.action-content p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.5rem 1rem;
    }
    
    .search-filters {
        justify-content: center;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-card {
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Feedback/Ticket Logging System */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
    background: linear-gradient(135deg, #2980b9 0%, #1e5f99 100%);
}

.feedback-button:active {
    transform: translateY(0);
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(3px);
}

.feedback-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.feedback-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-form h2 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.feedback-close:hover {
    color: #e74c3c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group.required label::after {
    content: ' *';
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.context-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid #3498db;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Mobile adjustments for feedback system */
@media (max-width: 768px) {
    .feedback-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .feedback-form {
        padding: 1.5rem;
        width: 95%;
        margin: 10px;
        border-radius: 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Clean Navigation Enhancement Styles */

/* Reset nav menu to original working state */
.nav-menu li {
    border-bottom: 1px solid #34495e;
}

.nav-menu li a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    background-color: #34495e;
    padding-left: 2rem;
}

.nav-menu li a.active {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* Expandable Navigation Enhancement */
.nav-item-expandable {
    position: relative;
}

.nav-item-expandable > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-expand-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
}

.nav-expand-icon:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item-expandable.expanded .nav-expand-icon {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    background: #1a252f;
    transition: max-height 0.3s ease-out;
}

.nav-submenu.expanded {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for submenu */
.nav-submenu::-webkit-scrollbar {
    width: 6px;
}

.nav-submenu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.nav-submenu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nav-submenu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scroll indicator for long lists */
.nav-submenu[data-scrollable="true"]::after {
    content: "⋯ scroll for more";
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.3rem;
    background: linear-gradient(transparent, #1a252f);
    position: sticky;
    bottom: 0;
    pointer-events: none;
}

.nav-submenu-item {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 2.5rem;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-submenu-item:hover {
    background: rgba(52, 152, 219, 0.1);
    color: white;
    border-left-color: #3498db;
}

.nav-submenu-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
    font-weight: 500;
}

/* Hierarchical levels */
.nav-submenu-item.level-h3 { padding-left: 3rem; }
.nav-submenu-item.level-h4 { padding-left: 3.5rem; }
.nav-submenu-item.level-h5 { padding-left: 4rem; }
.nav-submenu-item.level-h6 { padding-left: 4.5rem; }

/* Progress Indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(52, 152, 219, 0.2);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    width: 0%;
    transition: width 0.2s ease;
}

/* Responsive Design for Clean Navigation */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
    }
    
    .nav-submenu-item {
        font-size: 0.8rem;
        padding: 0.4rem 2rem;
    }
    
    .nav-submenu-item.level-h3 { padding-left: 2.5rem; }
    .nav-submenu-item.level-h4 { padding-left: 3rem; }
    .nav-submenu-item.level-h5 { padding-left: 3.5rem; }
    .nav-submenu-item.level-h6 { padding-left: 4rem; }
    
    /* Mobile-specific submenu adjustments */
    .nav-submenu.expanded {
        max-height: 60vh;
    }
    
    .nav-submenu::-webkit-scrollbar {
        width: 4px;
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.toc-link:focus,
.section-header:focus,
.toc-toggle:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content:not(.collapsed) {
    animation: fadeInUp 0.3s ease-out;
}