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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --accent-amber: #fbbf24;
    --accent-amber-dark: #f59e0b;
    --accent-amber-light: #fcd34d;
    --border-color: #262626;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(20, 20, 20, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🐝";
    font-size: 1.5rem;
}

.logo:hover {
    color: var(--accent-amber-light);
    transition: color 0.2s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-amber);
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Dashboard Components */
.dashboard-component {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    width: 100%;
    height: fit-content;
}

.dashboard-component:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.component-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.component-status-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.component-status-indicator.status-healthy {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.component-status-indicator.status-unhealthy {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.component-status-indicator.status-checking {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.component-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Health Check Component */
.health-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.health-status.healthy {
    color: var(--success);
}

.health-status.unhealthy {
    color: var(--error);
}

.health-status.checking {
    color: var(--warning);
}

.health-status-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.health-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.health-last-check {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.health-checks {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.health-check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.check-name {
    color: var(--text-secondary);
}

.check-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.check-status.healthy {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.check-status.unhealthy {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* Statistics Component */
.stats-icon {
    font-size: 1.5rem;
}

.stats-total {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.stats-total-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-total-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-amber);
    line-height: 1;
}

.stats-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-type {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-count {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stat-bar-fill.bug {
    background: linear-gradient(90deg, var(--error) 0%, #f87171 100%);
}

.stat-bar-fill.feature {
    background: linear-gradient(90deg, var(--info) 0%, #60a5fa 100%);
}

.stat-bar-fill.other {
    background: linear-gradient(90deg, var(--accent-amber) 0%, var(--accent-amber-light) 100%);
}

.stat-percentage {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: right;
}

/* Activity Feed */
.activity-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.activity-item:hover {
    border-color: var(--accent-amber);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.activity-icon.warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.activity-icon.info {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.activity-icon.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-status.active {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.activity-status.pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.activity-status.completed {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .dashboard-component {
        padding: 1.5rem;
    }

    .activity-section {
        padding: 1.5rem;
    }

    .activity-item {
        flex-direction: column;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Login Dialog */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--error);
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-button {
    background: var(--accent-amber);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background: var(--accent-amber-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Feedback Form */
.feedback-form-container {
    max-width: 700px;
    margin: 2rem auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.feedback-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.feedback-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feedback-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-input select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a3a3a3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-input select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fbbf24' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--success);
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .feedback-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .feedback-header h1 {
        font-size: 1.5rem;
    }
}

