/* NextGen BBS Stylesheet - Authentic 1980s Terminal Experience */

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

html, body {
    min-height: 100%;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
    background: #000000;
    color: #00FF00;
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scroll */
}

/* Terminal Container */
.terminal-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    background: #000000;
}

/* Terminal Header */
.terminal-header {
    background: #001100;
    border-bottom: 1px solid #00FF00;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    flex-wrap: wrap;
    gap: 5px;
}

.terminal-title {
    color: #00FF00;
    text-shadow: 0 0 5px #00FF00;
}

.terminal-title a {
    color: #00FF00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terminal-title a:hover {
    color: #00CC00;
    text-shadow: 0 0 8px #00FF00;
}

.terminal-info {
    color: #00AA00;
    font-size: 10px;
    text-align: right;
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    padding: 20px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Login Screen */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
}

.ansi-art {
    text-align: center;
    color: #00FF00;
    font-size: 8px;
    line-height: 1.0;
    text-shadow: 0 0 10px #00FF00;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
}

.login-form {
    background: #001100;
    border: 1px solid #00FF00;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    width: 100%;
    max-width: 350px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #00FF00;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    background: #000000;
    border: 1px solid #00FF00;
    color: #00FF00;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-color: #00FF00;
}

.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background: #000000;
    border: 1px solid #00FF00;
    color: #00FF00;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    resize: none;
    min-height: 80px;
}

.form-group textarea:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-color: #00FF00;
}

/* Preference Group Styles */
.preference-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preference-item input[type="checkbox"] {
    margin: 0;
    width: auto;
    min-width: 16px;
    height: 16px;
    accent-color: #00FF00;
}

.preference-item label {
    margin: 0;
    color: #00FF00;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* User Preference Styles */
.no-ansi {
    /* Disable ANSI colors - show plain text */
}

.no-ansi .menu-key,
.no-ansi .menu-title,
.no-ansi .terminal-title,
.no-ansi .breadcrumb a,
.no-ansi .btn {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.no-ansi .terminal-border {
    border-color: #FFFFFF !important;
}

.no-ansi .form-group input,
.no-ansi .form-group textarea,
.no-ansi .form-group select {
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.expert-mode .help-text,
.expert-mode .small,
.expert-mode .menu-desc {
    display: none !important;
}

.expert-mode .form-group small {
    display: none !important;
}

/* Pause Mode Styles */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pause-message {
    background: #001100;
    border: 2px solid #00FF00;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.pause-text {
    color: #00FF00;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px #00FF00;
}

/* Guest Access Styles */
.guest-notice {
    background: #001100;
    border: 1px solid #00FF00;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.guest-notice h3 {
    color: #00FF00;
    margin-top: 0;
    margin-bottom: 15px;
}

.guest-notice p {
    color: #AAAAAA;
    margin-bottom: 10px;
    line-height: 1.4;
}

.guest-notice ul {
    color: #AAAAAA;
    margin: 10px 0;
    padding-left: 20px;
}

.guest-notice li {
    margin-bottom: 5px;
}

.guest-notice a {
    color: #00FF00;
    text-decoration: underline;
}

.guest-notice a:hover {
    color: #FFFFFF;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    background: #001100;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button:hover {
    background: #00FF00;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.btn-link {
    color: #00FF00;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #00FF00;
    background: #001100;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #00FF00;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.guest-info {
    text-align: center;
    margin-top: 20px;
    color: #00AA00;
}

.guest-info a {
    color: #00FF00;
    text-decoration: none;
}

.guest-info a:hover {
    text-decoration: underline;
}

/* Main Menu */
.main-menu {
    color: #00FF00;
    font-size: 14px;
    line-height: 1.4;
}

.menu-options {
    margin-top: 10px;
}

/* Welcome Info */
.welcome-info {
    background: #001100;
    border: 1px solid #00FF00;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-info h2 {
    color: #00FF00;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 5px #00FF00;
}

.welcome-details {
    display: grid;
    gap: 8px;
}

.welcome-details p {
    margin: 0;
    color: #00AA00;
    font-size: 14px;
}

.welcome-details strong {
    color: #00FF00;
}

/* Menu Options List */
.menu-options-list {
    background: #001100;
    border: 1px solid #00FF00;
    padding: 20px;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #003300;
    gap: 15px;
    transition: all 0.3s ease;
}

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

.menu-item.clickable {
    cursor: pointer;
    user-select: none;
}

.menu-item.clickable:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(5px);
    padding-left: 15px;
}

.menu-item.clickable:active {
    background: rgba(0, 255, 0, 0.2);
    transform: translateX(3px);
}

.menu-key {
    color: #00FF00;
    font-weight: bold;
    min-width: 40px;
    text-shadow: 0 0 5px #00FF00;
}

.menu-title {
    color: #00FF00;
    font-weight: bold;
    min-width: 150px;
}

.menu-desc {
    color: #00AA00;
    flex: 1;
}

.logout-item .menu-key,
.logout-item .menu-title {
    color: #FF6666;
}

.quit-item .menu-key,
.quit-item .menu-title {
    color: #FFAA66;
}

.interactive-menu {
    margin-top: 20px;
    padding: 20px;
    background: #001100;
    border: 1px solid #00FF00;
}

.menu-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-form .form-group {
    width: 100%;
    max-width: 400px;
}

.menu-form select {
    width: 100%;
    padding: 12px;
    background: #000000;
    border: 1px solid #00FF00;
    color: #00FF00;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.menu-form select:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-color: #00FF00;
}

.menu-form .btn {
    padding: 12px 24px;
    font-size: 16px;
    min-width: 120px;
}

/* Terminal Footer */
.terminal-footer {
    background: #001100;
    border-top: 1px solid #00FF00;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #00AA00;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-info, .footer-time {
    color: #00AA00;
}

/* Error Messages */
.error-message {
    background: #330000;
    border: 1px solid #FF0000;
    color: #FF0000;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Success Messages */
.success-message {
    background: #003300;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Info Messages */
.info-message {
    background: #000033;
    border: 1px solid #0000FF;
    color: #0000FF;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Warning Messages */
.warning-message {
    background: #333300;
    border: 1px solid #FFFF00;
    color: #FFFF00;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Menu Links */
.menu-link {
    color: #00FF00;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background: #001100;
    border-left-color: #00FF00;
    text-shadow: 0 0 5px #00FF00;
}

.menu-link.active {
    background: #001100;
    border-left-color: #00FF00;
    color: #00FF00;
    font-weight: bold;
}

/* Form Styles */
.form-container {
    background: #001100;
    border: 1px solid #00FF00;
    padding: 20px;
    margin: 20px 0;
}

.form-container h2 {
    color: #00FF00;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px #00FF00;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Button Styles */
.btn {
    background: #001100;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #00FF00;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.btn-primary {
    background: #00FF00;
    color: #000000;
    font-weight: bold;
}

.btn-primary:hover {
    background: #00CC00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.btn-danger {
    border-color: #FF0000;
    color: #FF0000;
}

.btn-danger:hover {
    background: #FF0000;
    color: #000000;
}

.btn-warning {
    border-color: #FFFF00;
    color: #FFFF00;
}

.btn-warning:hover {
    background: #FFFF00;
    color: #000000;
}

/* Table Styles */
.table-container {
    background: #001100;
    border: 1px solid #00FF00;
    margin: 20px 0;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: #00FF00;
}

.table th,
.table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #00FF00;
}

.table th {
    background: #002200;
    color: #00FF00;
    font-weight: bold;
    text-shadow: 0 0 5px #00FF00;
}

.table tr:hover {
    background: #001100;
}

.table tr:nth-child(even) {
    background: #000800;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    padding: 5px 10px;
    border: 1px solid #00FF00;
    color: #00FF00;
    text-decoration: none;
    background: #001100;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #00FF00;
    color: #000000;
}

.pagination .current {
    background: #00FF00;
    color: #000000;
    font-weight: bold;
}

/* Status Bar */
.status-bar {
    background: #001100;
    border: 1px solid #00FF00;
    padding: 10px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-left {
    color: #00FF00;
    font-weight: bold;
}

.status-right {
    color: #00AA00;
    font-size: 12px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #001100;
    border: 1px solid #00FF00;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #00FF00;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-weight: bold;
    font-size: 12px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #00FF00;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #003300;
}

::-webkit-scrollbar-thumb {
    background: #00FF00;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #00CC00;
}

/* Mobile-First Responsive Design */
@media (max-width: 480px) {
    .terminal-container {
        min-height: 100vh;
    }
    
    .terminal-header {
        padding: 10px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .terminal-title {
        font-size: 14px;
    }
    
    .terminal-info {
        font-size: 11px;
        text-align: left;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    .ansi-art {
        font-size: 6px;
        line-height: 0.9;
        overflow: hidden;
    }
    
    .login-form {
        padding: 15px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 8px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Touch target size */
    }
    
    .terminal-footer {
        padding: 5px 8px;
        font-size: 9px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .footer-info,
    .footer-time {
        font-size: 9px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .terminal-header {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .terminal-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .ansi-art {
        font-size: 7px;
    }
    
    .login-form {
        padding: 25px;
        max-width: 400px;
    }
}

@media (min-width: 769px) {
    .terminal-header {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .terminal-content {
        padding: 30px;
        font-size: 16px;
    }
    
    .ansi-art {
        font-size: 10px;
    }
    
    .login-form {
        padding: 30px;
        max-width: 400px;
    }
}

/* Print Styles */
@media print {
    .terminal-container {
        border: none;
        box-shadow: none;
        background: white;
        color: black;
    }
    
    .terminal-header,
    .terminal-footer {
        background: white;
        border: none;
        color: black;
    }
    
    .login-form,
    .form-container {
        border: 1px solid black;
        background: white;
        color: black;
    }
    
    .btn,
    .menu-link {
        border: 1px solid black;
        background: white;
        color: black;
    }
}
