:root {
    --primary-color: #2563eb;
    --hover-color: #1d4ed8;
    --background: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-background: #ffffff;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

#container {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    max-width: 600px;
    width: 90%;
    margin: 2rem;
    transition: transform 0.2s ease;
}

#container:hover {
    transform: translateY(-2px);
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

button:active {
    transform: translateY(0);
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

#linkContainer {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    word-break: break-all;
    min-height: 100px;
}

#linkContainer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

#linkContainer a:hover {
    text-decoration: underline;
}

.loading-message {
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

.error-message {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 1.5rem;
}

.pr-card {
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 1.25rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.pr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pr-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.pr-repo {
    color: var(--primary-color);
    font-weight: 500;
}

.pr-number {
    color: var(--text-secondary);
}

.pr-title {
    margin: 0.5rem 0 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.pr-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pr-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pr-link:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.fa-spin {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

.heart {
    display: inline-block;
    transition: transform 0.2s ease;
}

footer:hover .heart {
    transform: scale(1.2);
}

@media (max-width: 640px) {
    #container {
        padding: 1.5rem;
        margin: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Interactive Button Animation - Fixed */
.interactive-button {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    margin: 0 auto;
    /* Remove conflicting background property */
    background: transparent;
}

.button-text {
    display: inline-block;
    transform: translateX(0);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.button-icon-container {
    position: absolute;
    top: 0;
    z-index: 2;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    transform: translateX(3rem);
    opacity: 0;
    transition: all 0.3s ease;
}

.button-background {
    position: absolute;
    left: 20%;
    top: 40%;
    height: 8px;
    width: 8px;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: scale(0); /* Hide the circle initially */
    opacity: 0; /* Make it fully transparent initially */
}

/* Hover states */
.interactive-button:hover .button-text {
    transform: translateX(3rem);
    opacity: 0;
}

.interactive-button:hover .button-icon-container {
    transform: translateX(0);
    opacity: 1;
}

.interactive-button:hover .button-background {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transform: scale(1.8);
    opacity: 1; /* Make it visible on hover */
    border-radius: 9999px;
}

/* Disabled state */
.interactive-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.interactive-button:disabled .button-background {
    background-color: var(--text-secondary);
}

/* SRE Metrics styling */
.metrics-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    border-top: 1px dashed var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.metrics-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.metrics-container h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-container h3::before {
    content: '📊';
    font-size: 1.2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.metric-card {
    background: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.metric-chart {
    height: 40px;
    width: 100%;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color) 70%, rgba(37, 99, 235, 0.3) 30%);
    border-radius: 4px;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Terminal styling */
.terminal-container {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    display: none; /* Hidden by default, shown after first PR request */
}

.terminal-header {
    background: #2d3748;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button:nth-child(1) {
    background: #ef4444;
}

.terminal-button:nth-child(2) {
    background: #f59e0b;
}

.terminal-button:nth-child(3) {
    background: #10b981;
}

.terminal-body {
    background: #1a202c;
    color: #a0aec0;
    padding: 1rem;
    min-height: 60px;
}

.command-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.command {
    color: #e2e8f0;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #e2e8f0;
    margin-left: 3px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* SRE Monitoring Easter Egg Styling */
.monitoring-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #e2e8f0;
    backdrop-filter: blur(3px);
}

.monitoring-overlay.visible {
    opacity: 1;
}

.monitoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.monitoring-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #3b82f6;
}

#closeMonitoring {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 2rem;
    cursor: pointer;
}

.monitoring-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
}

.monitor-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.chart {
    height: 150px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 0.25rem;
    margin-top: 1rem;
}

.budget-display, .slo-status, .deploy-count {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
}

.slo-status {
    color: #10b981;
}

/* Add a glitch animation for SRE humor when errors happen */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.error-message {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    animation-iteration-count: 3;
}

/* CLI Mode Easter Egg Styling */
.cli-terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 700px;
    height: 400px;
    background: #1a202c;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.cli-terminal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cli-header {
    background: #2d3748;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cli-title {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
}

.cli-close {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
}

.cli-output {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    color: #a0aec0;
    font-size: 0.9rem;
}

.cli-welcome {
    color: #3b82f6;
    margin-bottom: 1rem;
}

.cli-command-line {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #2d3748;
    font-family: 'Courier New', monospace;
}

.cli-prompt {
    color: #10b981;
    margin-right: 0.5rem;
}

.cli-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    outline: none;
}

.cli-cursor {
    width: 8px;
    height: 16px;
    background: #e2e8f0;
    display: inline-block;
    animation: blink 1s step-end infinite;
}

.cli-command-display {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.cli-response {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cli-error {
    color: #ef4444;
}

.cli-command {
    color: #3b82f6;
    font-weight: bold;
}

.cli-secret {
    color: #f59e0b;
    font-style: italic;
}

/* Enhanced PR Card Styles */
.save-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.save-button:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.save-button.saved {
    color: var(--primary-color);
}

.save-button.saved:hover {
    background: rgba(37, 99, 235, 0.2);
}

.pr-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.pr-complexity, .pr-skill, .pr-language, .pr-days {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.pr-complexity.complexity-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.pr-complexity.complexity-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

.pr-complexity.complexity-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.pr-complexity.complexity-very-high {
    background: rgba(139, 69, 19, 0.1);
    color: #8b4513;
}

.pr-skill {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.pr-language {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

.pr-days {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

.pr-labels {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pr-label {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: white;
    font-weight: 500;
}

.pr-label-more {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--text-secondary);
    color: white;
    font-weight: 500;
}

.pr-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-button {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-button:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-background);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.visible {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

.notification-info {
    border-left-color: var(--primary-color);
}

/* Achievement Notification Styles */
.achievement-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1001;
    max-width: 400px;
    text-align: center;
}

.achievement-notification.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-icon {
    font-size: 2rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.achievement-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.achievement-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-description {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Mobile responsiveness for new elements */
@media (max-width: 640px) {
    #container {
        padding: 1.5rem;
        margin: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .pr-stats {
        gap: 0.5rem;
    }

    .pr-complexity, .pr-skill, .pr-language, .pr-days {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .pr-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pr-actions .pr-link {
        text-align: center;
    }

    .achievement-notification {
        left: 10px;
        right: 10px;
        transform: translateX(0) translateY(-100%);
        max-width: none;
    }

    .achievement-notification.visible {
        transform: translateX(0) translateY(0);
    }

    .notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Filter Controls Styles */
.filter-controls {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

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

.filter-group select {
    padding: 0.5rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 0.25rem;
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.clear-filters-button {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    width: fit-content;
}

.clear-filters-button:hover {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-primary);
}

/* Responsive filter controls */
@media (min-width: 768px) {
    .filter-controls {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 1rem;
        align-items: end;
    }

    .filter-group {
        margin-bottom: 0;
    }

    .clear-filters-button {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .filter-controls {
        padding: 1rem;
    }

    .filter-group select {
        width: 100%;
    }
}

/* Dashboard Button Styles */
.dashboard-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-background);
    border: 1px solid rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Dashboard Modal Styles */
.dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dashboard-modal.visible {
    opacity: 1;
    visibility: visible;
}

.dashboard-content {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dashboard-modal.visible .dashboard-content {
    transform: scale(1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.dashboard-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

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

.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-card.locked {
    background: rgba(100, 116, 139, 0.05);
    border-color: rgba(100, 116, 139, 0.1);
    opacity: 0.6;
}

.achievement-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.achievement-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.achievement-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.saved-prs-list {
    display: grid;
    gap: 0.75rem;
}

.saved-pr-item {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-pr-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.saved-pr-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.saved-pr-actions {
    display: flex;
    gap: 0.5rem;
}

.saved-pr-actions button {
    background: none;
    border: 1px solid rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.saved-pr-actions button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* Mobile dashboard adjustments */
@media (max-width: 640px) {
    .dashboard-content {
        padding: 1rem;
        margin: 1rem;
        max-height: 90vh;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .saved-pr-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .saved-pr-actions {
        width: 100%;
        justify-content: flex-end;
    }
}