:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--dark);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

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

.btn-secondary:hover {
    background: #475569;
}

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

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

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-github {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-link {
    background: none;
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--secondary);
    margin-top: 0.5rem;
}

/* Repository Grid */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.repo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.repo-card h3 {
    margin-bottom: 0.5rem;
}

.repo-fullname {
    color: var(--secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.repo-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #cffafe;
    color: #155e75;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Table */
.table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table thead {
    background: var(--light);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
}

.table tr {
    border-bottom: 1px solid var(--border);
}

.table tr:last-child {
    border-bottom: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

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

textarea.form-control {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

.auth-card h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.auth-content {
    text-align: center;
    margin-bottom: 2rem;
}

.features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.features h3 {
    margin-bottom: 1rem;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 0.5rem 0;
    color: var(--secondary);
}

.features li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
}

.empty-state p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Section */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Details List */
.details-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
}

.details-list dt {
    font-weight: 600;
}

.details-list dd {
    margin: 0;
}

.details-list .error {
    color: var(--danger);
}

/* Comment Card */
.comment-card {
    background: white;
    border-left: 4px solid var(--info);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-card.severity-error {
    border-left-color: var(--danger);
}

.comment-card.severity-warning {
    border-left-color: var(--warning);
}

.comment-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.file-path {
    font-weight: 600;
    color: var(--dark);
}

.line-number {
    color: var(--secondary);
    font-size: 0.875rem;
}

.comment-body {
    color: #333;
    line-height: 1.6;
}

/* Code Block */
.code-block {
    background: var(--dark);
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style-position: inside;
    color: var(--dark);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--secondary);
}
