/* LODC - Living Off Default Credentials Styles - Retro Terminal Theme */

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

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
    color: #d4d4d4;
    background-color: #0d1117;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #161b22;
    color: #d4d4d4;
    padding: 1rem 0;
    border-bottom: 1px solid #30363d;
}

.header-content {
    margin-top: 1.5rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.title-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #bb86fc;
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

.title-text p {
    font-size: 1rem;
    color: #9ca3af;
    margin: 0;
}

.header-description {
    font-size: 0.9rem;
    color: #8b949e;
    line-height: 1.5;
    max-width: 800px;
    margin-top: 0.5rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: #d4d4d4;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    font-weight: normal;
}

nav a:hover,
nav a.active {
    border-bottom-color: #bb86fc;
    color: #bb86fc;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Search Section */
.search-section {
    background: #161b22;
    padding: 1rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

#searchInput {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 0 5px rgba(187, 134, 252, 0.3);
}

#clearSearch {
    padding: 0.5rem 1rem;
    background: #21262d;
    color: #d4d4d4;
    border: 1px solid #30363d;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#clearSearch:hover {
    background: #bb86fc;
    color: #1e1e1e;
}

.filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filters select:focus {
    outline: none;
    border-color: #bb86fc;
}

#clearFilters {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: #d4d4d4;
    border: 1px solid #dc2626;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#clearFilters:hover {
    background: #b91c1c;
}

/* Results Info */
.results-info {
    margin-bottom: 1rem;
    font-weight: normal;
    color: #9ca3af;
    font-size: 14px;
}

/* Table */
.table-container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

/* Table column constraints */
th:nth-child(1), td:nth-child(1) { /* Vendor */
    width: 30%;
    max-width: 30%;
}

th:nth-child(2), td:nth-child(2) { /* Product */
    width: 40%;
    max-width: 40%;
}

th:nth-child(3), td:nth-child(3) { /* Category */
    width: 15%;
    max-width: 15%;
}

th:nth-child(4), td:nth-child(4) { /* Actions */
    width: 15%;
    max-width: 15%;
}

/* Text truncation for long content */
td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.75rem;
}

/* Allow wrapping for product names if needed */
td:nth-child(2) {
    white-space: normal;
    word-wrap: break-word;
}

thead {
    background: #21262d;
    color: #bb86fc;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #30363d;
    border-right: 1px solid #30363d;
}

th {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #bb86fc;
}

th:last-child, td:last-child {
    border-right: none;
}

.credential-cell {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.credential-username {
    color: #4fc3f7;
}

.credential-password {
    color: #ff9800;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #21262d;
}

tbody tr:nth-child(even) {
    background-color: #0d1117;
}

tbody tr:nth-child(even):hover {
    background-color: #21262d;
}

/* Credential Display */
.credential-username {
    font-family: 'Courier New', monospace;
    background: #0d1117;
    padding: 0.2rem 0.4rem;
    border: 1px solid #30363d;
    font-size: 13px;
    color: #4fc3f7;
}

.credential-password {
    font-family: 'Courier New', monospace;
    background: #0d1117;
    padding: 0.2rem 0.4rem;
    border: 1px solid #30363d;
    font-size: 13px;
    color: #f06292;
}

/* Action Buttons */
.action-btn {
    padding: 0.4rem 0.8rem;
    background: #bb86fc;
    color: #1e1e1e;
    border: 1px solid #bb86fc;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #0d1117;
    color: #bb86fc;
    border-color: #bb86fc;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-style: italic;
}

/* Content Pages */
.content {
    background: #161b22;
    padding: 1.5rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-top: 2rem;
}

.content h2 {
    color: #bb86fc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.5rem;
}

.content h3 {
    color: #d4d4d4;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.content h4 {
    color: #9ca3af;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #d4d4d4;
}

.content ul, .content ol {
    margin: 1rem 0 1rem 2rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: #d4d4d4;
}

.content pre {
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d4d4d4;
}

.content code {
    background: #0d1117;
    padding: 0.2rem 0.4rem;
    border: 1px solid #30363d;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #4fc3f7;
}

.content a {
    color: #bb86fc;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
    color: #d4d4d4;
}

/* Footer */
footer {
    background: #0d1117;
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #30363d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .title-text h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    nav {
        gap: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters select {
        width: 100%;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    /* Hide less important columns on mobile */
    .mobile-hide {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }
    
    .title-text h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-title {
        gap: 0.75rem;
    }
    
    .search-section {
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 0.4rem;
    }
}

/* Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #161b22;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #30363d;
    border-radius: 6px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-header {
    background: #21262d;
    color: #bb86fc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    color: #9ca3af;
}

.close:hover {
    color: #bb86fc;
}

.modal-body {
    padding: 1.5rem;
    background: #161b22;
    color: #d4d4d4;
}

.credential-details h3 {
    color: #bb86fc;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.5rem;
}

.credential-details h3:first-child {
    margin-top: 0;
}

.credential-item {
    background: #0d1117;
    padding: 1rem;
    border: 1px solid #30363d;
    margin-bottom: 1rem;
    border-left: 3px solid #bb86fc;
}

.credential-item p {
    margin: 0.5rem 0;
    color: #d4d4d4;
}

.credential-details code {
    background: #0d1117;
    padding: 0.2rem 0.4rem;
    border: 1px solid #30363d;
    font-family: 'Courier New', monospace;
    color: #4fc3f7;
}

.credential-details ul {
    margin: 0.5rem 0 1rem 0;
    list-style: none;
    padding: 0;
}

.credential-details li {
    margin: 0.25rem 0;
    color: #d4d4d4;
}

.credential-details a {
    color: #d4d4d4;
    text-decoration: underline;
}

.credential-details a:hover {
    color: #bb86fc;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Subtitle styling */
.subtitle {
    font-size: 1rem;
    color: #9ca3af;
    margin: 0;
    font-weight: normal;
}

/* Enhanced Footer */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-content nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-content nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-content nav a:hover {
    color: #bb86fc;
}

.disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
