/* =============================================
   VulnCorp Internal Portal - Stylesheet
   ADVERTENCIA: App vulnerable para práctica
   ============================================= */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #16213e;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e94560;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 22px;
    font-weight: bold;
    color: #e94560;
    letter-spacing: 1px;
}

.navbar .logo span {
    color: #ffffff;
}

.navbar .nav-links a {
    color: #a0a0b0;
    text-decoration: none;
    margin-left: 5px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background: #e94560;
    color: #fff;
}

.navbar .user-info {
    color: #a0a0b0;
    font-size: 14px;
}

.navbar .user-info strong {
    color: #e94560;
}

/* ===== LOGIN ===== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-card {
    background: #16213e;
    border-radius: 12px;
    padding: 45px 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #0f3460;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-card .brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .brand h1 {
    font-size: 28px;
    color: #e94560;
    font-weight: 700;
}

.login-card .brand p {
    color: #555;
    font-size: 13px;
    margin-top: 5px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
}

/* ===== CARDS ===== */
.card {
    background: #16213e;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 22px;
    border: 1px solid #0f3460;
}

.card h2 {
    color: #e94560;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== GRID ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: #16213e;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #0f3460;
    border-left: 4px solid #e94560;
}

.stat-card .stat-number {
    font-size: 38px;
    font-weight: 700;
    color: #e94560;
}

.stat-card .stat-label {
    color: #666;
    margin-top: 5px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #0f3460;
    border: 1px solid #1a4a8a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e94560;
}

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

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #e94560;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #c73652;
}

.btn-secondary {
    background: #0f3460;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #1a4a8a;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid #e94560;
    color: #e94560;
}

.alert-success {
    background: rgba(0, 200, 100, 0.15);
    border: 1px solid #00c864;
    color: #00c864;
}

.alert-info {
    background: rgba(0, 150, 255, 0.15);
    border: 1px solid #0096ff;
    color: #0096ff;
}

.alert-warning {
    background: rgba(255, 165, 0, 0.15);
    border: 1px solid orange;
    color: orange;
}

/* ===== TABLE ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    color: #e94560;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #0f3460;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #0f3460;
    color: #c0c0c0;
}

.table tr:hover td {
    background: rgba(233, 69, 96, 0.05);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-critical {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border: 1px solid #e94560;
}

.badge-high {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    border: 1px solid #ff8c00;
}

.badge-medium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.badge-admin {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.badge-user {
    background: rgba(0, 150, 255, 0.2);
    color: #0096ff;
}

/* ===== CODE / PRE ===== */
pre, code {
    background: #0a1628;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    color: #00ff88;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    border: 1px solid #0f3460;
}

/* ===== VULN INFO BOX ===== */
.vuln-box {
    background: rgba(233, 69, 96, 0.08);
    border: 1px dashed #e94560;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 20px;
    font-size: 13px;
}

.vuln-box .vuln-title {
    color: #e94560;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 14px;
}

.vuln-box .vuln-hint {
    color: #888;
    line-height: 1.6;
}

.vuln-box .vuln-hint code {
    background: #0f3460;
    padding: 2px 6px;
    border-radius: 3px;
    color: #00ff88;
    font-size: 12px;
}

/* ===== PROFILE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e94560;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 22px;
    color: #e0e0e0;
}

.profile-info p {
    color: #666;
    margin-top: 4px;
}

/* ===== OUTPUT BOX ===== */
.output-box {
    background: #0a1628;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 18px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #00ff88;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 80px;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== COMMENTS ===== */
.comment-item {
    padding: 15px;
    border-bottom: 1px solid #0f3460;
}

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

.comment-author {
    color: #e94560;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.comment-date {
    color: #444;
    font-size: 11px;
    float: right;
}

.comment-text {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    color: #333;
    font-size: 12px;
    padding: 30px;
    margin-top: 40px;
    border-top: 1px solid #0f3460;
}

/* ===== MISC ===== */
hr {
    border: none;
    border-top: 1px solid #0f3460;
    margin: 20px 0;
}

a {
    color: #e94560;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-muted {
    color: #555;
    font-size: 13px;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
