/* FilaBridge Dashboard - Main Styles */

/* Base Layout */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 20px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: visible;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
}

.header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.content {
    padding: 0;
    background: #1a1a1a;
    color: #fff;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}

.welcome-banner h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.welcome-banner ol {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-banner li {
    margin: 8px 0;
}

/* Help Section */
.help-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
}

.help-section h4 {
    margin: 0 0 15px 0;
}

.help-section ol {
    margin: 0;
    padding-left: 20px;
}

.help-section li {
    margin: 8px 0;
}

/* Page Footer */
.app-footer {
    text-align: center;
    padding: 15px;
    color: rgba(255,255,255,0.75);
    font-size: 0.85em;
}

.app-footer a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Inline failure text, e.g. a settings panel that could not load. A class
   rather than an inline colour so a skin can restyle it. */
.text-error {
    color: #ff6b6b;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    color: #fff;
}

/* Long inline commands (e.g. the Docker run snippet) must not force the page
   wider than the phone; wrap them instead. */
.welcome-banner code,
.config-section code,
.help-section code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Mobile / narrow viewports */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.6em;
    }

    .header p {
        font-size: 1em;
    }

    /* Title and its subtitle stack instead of fighting for one row. */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
