:root {
    --bg-color: #0A192F;
    --primary-color: #0E203A;
    --secondary-color: #8892B0;
    --accent-color: #64FFDA;
    --text-color: #CCD6F6;
    --card-bg-color: rgba(14, 32, 58, 0.75);
    --card-border-color: rgba(136, 146, 176, 0.2);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    padding: 4rem 0;
}

.header h1 {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.header h1 span {
    color: var(--accent-color);
}

.header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.incidents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.incident-card {
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.incident-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-color);
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-new {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

.status-review {
    background-color: rgba(255, 204, 0, 0.1);
    color: #FFCC00;
}

.status-resolved {
    background-color: rgba(136, 146, 176, 0.1);
    color: var(--secondary-color);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card-body strong {
    color: var(--text-color);
    font-weight: 500;
}

.card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn {
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: transparent;
    color: var(--accent-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(136, 146, 176, 0.1);
}

/* Incident Detail Page */
.incident-detail-card, .ai-analysis-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.incident-detail-card .card-header, .ai-analysis-card .card-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.incident-title {
    color: #64FFDA;
    margin: 0;
}

.incident-source {
    color: #8892B0;
    font-size: 1rem;
}

.analysis-title {
    color: #CCD6F6;
    margin: 0;
}

.ai-analysis-card h4 {
    color: #64FFDA;
    margin-top: 20px;
    margin-bottom: 10px;
}

.ai-analysis-card p, .ai-analysis-card ul {
    color: #8892B0;
}

.ai-analysis-card ul {
    padding-left: 20px;
}

.ai-analysis-card li {
    margin-bottom: 10px;
}

.sentiment-negative {
    color: #ff8b8b;
    font-weight: bold;
}

.sentiment-positive {
    color: #8bff8b;
    font-weight: bold;
}

.sentiment-neutral {
    color: #ccc;
    font-weight: bold;
}

.back-link-container {
    text-align: center;
    margin-top: 30px;
}

/* Login Form Styles */
.login-form-container {
    max-width: 500px;
    margin: 2rem auto;
}

.login-form-container .incident-card {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.form-group .form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.alert-danger {
    background-color: rgba(255, 100, 100, 0.1);
    color: #ff8b8b;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #ff8b8b;
}

/* Auth Container */
.auth-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-container span {
    color: var(--secondary-color);
}

/* Brand List Page */
.brand-list-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.brand-list-container .card-header {
    padding: 0 0 1rem 0;
}

.brand-table {
    width: 100%;
    border-collapse: collapse;
}

.brand-table th, .brand-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border-color);
}

.brand-table th {
    font-family: var(--font-mono);
    color: var(--text-color);
}

.brand-table td {
    color: var(--secondary-color);
}

.brand-table a {
    color: var(--accent-color);
    text-decoration: none;
}

.brand-table .btn-danger {
    border-color: #ff8b8b;
    color: #ff8b8b;
}

.brand-table .btn-danger:hover {
    background-color: rgba(255, 100, 100, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
