@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0b0f19;
    --text-color: #e2e8f0;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --secondary-bg: rgba(30, 41, 59, 0.6);
    --panel-bg: rgba(15, 23, 42, 0.7);
    --border-color: rgba(51, 65, 85, 0.5);
    --glass-blur: blur(12px);
    --transition: all 0.3s ease;
    --danger: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, #1e293b, var(--bg-color));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-attachment: fixed;
}

/* Navigation */
nav {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Report Nav Dropdown */
.report-nav-item {
    position: relative;
    display: inline-block;
}

.report-nav-item .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.report-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.report-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.report-dropdown label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.report-dropdown .form-group {
    margin-bottom: 1.25rem;
}

.report-dropdown select,
.report-dropdown input {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
}

.row-flex {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.col-category {
    flex: 1.4;
}

.col-id {
    flex: 1;
}

.col-id input {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    color: white;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Buttons & Links */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-bg);
    box-shadow: none;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #f87171;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cbd5e1;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

/* Bug List */
.bug-entry {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bug-entry textarea {
    flex-grow: 1;
    min-height: 60px;
}

.remove-bug {
    background: transparent;
    color: var(--danger);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.remove-bug:hover {
    color: #f87171;
    transform: scale(1.1);
}

/* Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid var(--danger);
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

/* Layout extensions */
.main-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    align-items: flex-start;
}

.main-layout .main-panel {
    flex: 2;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.main-layout .side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.main-layout .side-panel .container {
    margin: 0;
}

.list-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.list-content {
    color: #e2e8f0;
    line-height: 1.6;
    text-align: left;
}

/* Poll Widget */
.poll-widget {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--primary-color);
}

.poll-option-radio {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.poll-option-radio:hover {
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.8);
}

.poll-option-radio label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.poll-option-radio input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.poll-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.poll-result-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}

.poll-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 6px;
    transition: width 1s ease-out;
}


@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        padding: 0 1rem;
    }

    .main-layout .main-panel,
    .main-layout .side-panel {
        width: 100%;
        margin-top: 1.5rem;
    }
}