/* Beach Gest User Manual Styles */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    --purple: #6f42c1;
    --dark: #212529;
    --light: #f8f9fa;
    --sidebar-width: 280px;
    --topbar-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-header .logo i {
    color: var(--warning);
}

.sidebar-search {
    padding: 1rem 1.5rem;
}

.sidebar-search .form-control {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
}

.nav-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item a:hover {
    background: rgba(13, 110, 253, 0.05);
    color: var(--primary);
}

.nav-item.active a {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.nav-item a i {
    width: 20px;
    text-align: center;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
}

.sidebar-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--dark);
}

.breadcrumb {
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

/* Content */
.content {
    padding: 2rem;
    max-width: 1000px;
}

/* Doc Sections */
.doc-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-header h1 i {
    margin-right: 0.5rem;
}

.section-header .lead {
    color: var(--secondary);
    margin-bottom: 0;
}

.doc-section h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.doc-section h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.doc-section h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

/* Feature Boxes */
.feature-box {
    background: var(--light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-box h5 {
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Interface Diagram */
.interface-diagram {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 60px 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    height: 300px;
}

.diagram-item {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diagram-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.diagram-item p {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: 0;
}

.sidebar-demo {
    grid-row: 1 / 3;
    background: #e3f2fd;
}

.navbar-demo {
    background: #fff3e0;
}

.content-demo {
    background: #e8f5e9;
}

/* Browser Cards */
.browser-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.browser-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.browser-card i {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

.browser-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.steps-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #e9ecef;
}

.steps-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h5 {
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.step-content ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Status Cards */
.status-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    height: 100%;
}

.status-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.status-card h5 {
    margin-bottom: 0.5rem;
}

.status-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.status-attiva {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.status-completata {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

.status-annullata {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

/* Category Cards */
.category-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary);
}

.category-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.category-card span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Legend */
.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
}

/* Metric Cards */
.metric-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.metric-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.metric-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.metric-card p {
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Module Badge */
.module-badge {
    background: var(--light);
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-badge i {
    color: var(--primary);
}

/* Contact Box */
.contact-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.contact-box i {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

.contact-box h5 {
    margin-bottom: 0.5rem;
}

.contact-box p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-box small {
    color: var(--secondary);
}

/* Tables */
.table {
    font-size: 0.875rem;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert i {
    margin-right: 0.5rem;
}

/* Accordion */
.accordion-item {
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Code */
code {
    background: #f1f3f4;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Footer */
.doc-footer {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Text Colors */
.text-purple {
    color: var(--purple) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .content {
        padding: 1rem;
    }

    .doc-section {
        padding: 1.5rem;
    }

    .interface-diagram {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .sidebar-demo {
        grid-row: auto;
    }
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Print Styles */
@media print {
    .sidebar,
    .topbar,
    .sidebar-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .content {
        padding: 0;
    }

    .doc-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
