/* VulnLab Platform - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e17;
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #79c0ff;
}

.navbar {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f0883e;
}

.nav-brand a:hover {
    text-decoration: none;
    color: #f4a261;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: #21262d;
    text-decoration: none;
}

.nav-user {
    color: #8b949e;
    padding: 6px 12px;
    border: 1px solid #30363d;
    border-radius: 20px;
    font-size: 0.85rem;
}

.btn-logout {
    color: #f85149 !important;
    border: 1px solid #f8514966;
    border-radius: 6px;
}

.btn-logout:hover {
    background: #f8514922 !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
    width: 100%;
}

h1, h2, h3 {
    color: #e6edf3;
    margin-bottom: 16px;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #30363d;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    color: #8b949e;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px #58a6ff33;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #238636;
    color: #fff;
    border-color: #2ea043;
}

.btn-primary:hover {
    background: #2ea043;
}

.btn-danger {
    background: #da3633;
    color: #fff;
}

.btn-danger:hover {
    background: #f85149;
}

.btn-secondary {
    background: #21262d;
    color: #c9d1d9;
    border-color: #363b42;
}

.btn-secondary:hover {
    background: #30363d;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid;
}

.alert-success {
    background: #0d1117;
    border-color: #238636;
    color: #3fb950;
}

.alert-error {
    background: #0d1117;
    border-color: #da3633;
    color: #f85149;
}

.alert-warning {
    background: #0d1117;
    border-color: #d29922;
    color: #e3b341;
}

.alert-info {
    background: #0d1117;
    border-color: #1f6feb;
    color: #58a6ff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #21262d;
}

table th {
    background: #161b22;
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: #161b2288;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-admin { background: #da363333; color: #f85149; }
.badge-manager { background: #d2992233; color: #e3b341; }
.badge-user { background: #23863633; color: #3fb950; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s;
}

.product-card:hover {
    border-color: #58a6ff;
}

.product-price {
    font-size: 1.3rem;
    color: #3fb950;
    font-weight: bold;
}

.product-category {
    color: #8b949e;
    font-size: 0.85rem;
}

.message-item {
    padding: 12px 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #161b22;
}

.message-item.unread {
    border-left: 3px solid #58a6ff;
}

.message-subject {
    font-weight: 600;
    color: #e6edf3;
}

.message-meta {
    font-size: 0.8rem;
    color: #8b949e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #58a6ff;
}

.stat-label {
    color: #8b949e;
    font-size: 0.85rem;
    margin-top: 4px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
}

.search-box button {
    padding: 12px 24px;
}

.upload-zone {
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.upload-zone:hover {
    border-color: #58a6ff;
}

.footer {
    background: #161b22;
    border-top: 1px solid #30363d;
    padding: 16px 24px;
    text-align: center;
    color: #8b949e;
    font-size: 0.85rem;
}

.footer a {
    color: #8b949e;
}

.login-container {
    max-width: 420px;
    margin: 60px auto;
}

code, pre {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
}

pre {
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #30363d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.profile-info h2 {
    margin-bottom: 4px;
}

.profile-bio {
    color: #8b949e;
    margin-top: 8px;
}
