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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    transition: background 0.5s ease;
    min-height: 100vh;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.moonshire-theme {
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4a 50%, #050515 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.necrozone-theme {
    background: linear-gradient(135deg, #2d0000 0%, #4a0000 50%, #1a0000 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

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

header {
    background: linear-gradient(135deg, #243448 0%, #364a5d 100%);
    color: #e0e0e0;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

header .project-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .project-selection select {
    padding: 0.25rem 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #4a5568;
    border-radius: 6px;
    min-width: 240px;
    text-align: center;
    transition: border-color 0.2s;
    min-height: 45px;
}

header .project-selection select:focus {
    outline: none;
    border-color: #667eea;
}

header .admin-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.username-display-header {
    font-size: 1rem;
    color: #e0e0e0;
    text-align: center;
    margin: 0.15rem 0;
}

.username-display-header .username {
    font-weight: bold;
}

.admin-login {
    margin-top: 0rem;
}

.login-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.login-form input {
    padding: 0.5rem 0.75rem;
    border: 2px solid #4a5568;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    min-width: 120px;
}

/* Style the browser's native password reveal button */
.login-form input[type="password"]::-ms-reveal,
.login-form input[type="password"]::-webkit-credentials-auto-fill-button {
    filter: invert(1) brightness(0.8);
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.login-form input::placeholder {
    color: #a0aec0;
}

.login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.new-bug-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 120px;
}

.new-bug-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.new-bug-btn:active {
    transform: translateY(0);
}

.new-bug-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats {
    font-size: 0.9rem;
    color: #e0e0e0;
    padding: 0.5rem;
    background-color: #1a1a1a;
    border: 2px solid #4a5568;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.refresh-button {
    background-color: #1a1a1a;
    border: 2px solid #4a5568;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.refresh-button:hover {
    border-color: #667eea;
    background-color: #243448;
}

.refresh-button:focus {
    outline: none;
    border-color: #667eea;
}

.refresh-button:active {
    background-color: #1a1a1a;
    border-color: #4a5568;
}

.refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #4a5568;
    background-color: #1a1a1a;
}

.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background: #243448;
    padding: 0.4rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    min-width: 140px;
}

.filter-group.bugs-found {
    width: 100%;
    order: 1;
    margin-top: 0.15rem;
}

.filter-group label {
    font-weight: 600;
    color: #a0aec0;
    font-size: 0.9rem;
    text-align: center;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 2px solid #4a5568;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    background-color: #1a1a1a;
    color: #e0e0e0;
    width: 100%;
    min-width: 140px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.bugs-found span {
    font-size: 1.2rem;
    color: #a0aec0;
    font-weight: 600;
    text-align: center;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bugs-found .loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: #a0aec0;
    font-weight: 600;
}

.bugs-found .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #4a5568;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: bugs-loading-spin 1s linear infinite;
}

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

.bug-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bug-card {
    background: #243448;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #4a5568;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4a5568;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.bug-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.bug-card-header {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.bug-card-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bug-chevron {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
    fill: #a0aec0;
}

.bug-card.expanded .bug-chevron {
    transform: rotate(90deg);
}

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

.bug-priority {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.bug-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.bug-card.expanded .bug-card-content {
    max-height: 2000px;
}

.bug-content-inner {
    padding: 1rem;
    border-top: 1px solid #4a5568;
}

.bug-card.priority-critical {
    border-left-color: #dc3545;
}

.bug-card.priority-high {
    border-left-color: #fd7e14;
}

.bug-card.priority-medium {
    border-left-color: #ffc107;
}

.bug-card.priority-low {
    border-left-color: #28a745;
}

/* Done bug cards have a subtle green-tinted background */
.bug-card.bug-status-done {
    background: #1a332a;
    border-left-color: #00583f;
}

.bug-card.bug-status-done:hover {
    background: #1f382f;
}

.bug-id {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a0aec0;
    background: #1a1a1a;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.bug-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f7fafc;
    flex: 1;
    line-height: 1.3;
}

.bug-header-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.bug-details {
    font-size: 0.9rem;
    color: #cbd5e0;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid rgba(99, 102, 241, 0.4);
}

.bug-attachment {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid #4a90e2;
}

.bug-attachment-minimal {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.attachment-content {
    margin-top: 0.5rem;
}

.bug-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    border: 1px solid #4a90e2;
    margin-top: 0.5rem;
}

.show-image-btn {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.show-image-btn:hover {
    background: #4a5568;
    border-color: #718096;
}

.play-video-btn {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.play-video-btn:hover {
    background: #4a5568;
    border-color: #718096;
}

.bug-video {
    border-radius: 4px;
    border: 1px solid #4a90e2;
}

.image-error {
    color: #e53e3e;
    font-style: italic;
    padding: 0.5rem;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.image-error {
    color: #dc3545;
    font-style: italic;
    margin-top: 0.5rem;
}

.attachment-url {
    font-family: monospace;
    color: #4a90e2;
    word-break: break-all;
}

.bug-expanded-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bug-date {
    font-size: 0.85rem;
    color: #a0aec0;
}

.bug-priority {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.priority-critical {
    background: #dc3545;
    color: white;
}

.priority-high {
    background: #fd7e14;
    color: white;
}

.priority-medium {
    background: #ffc107;
    color: #212529;
}

.priority-low {
    background: #28a745;
    color: white;
}

.bug-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-not-started {
    background: #607d8b;
    color: #ffffff;
}

.status-started {
    background: #2196f3;
    color: #ffffff;
}

.status-testing {
    background: #9952a5;
    color: #ffffff;
}

.status-ready {
    background: #38a262;
    color: #ffffff;
}

.status-done {
    background: #00583f;
    color: #ffffff;
}

.bug-last-edit {
    font-size: 0.8rem;
    color: #a0aec0;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.no-bugs {
    text-align: center;
    padding: 3rem;
    color: #a0aec0;
    font-size: 1.1rem;
}

.copyright-panel {
    background: linear-gradient(135deg, #243448 0%, #364a5d 100%);
    color: #a0aec0;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-panel p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* File upload styles */
.file-input-group {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-display:hover {
    border-color: #667eea;
    background: #364a5d;
}

.file-input-text {
    flex: 1;
    font-size: 0.9rem;
}

.file-input-clear {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-input-clear:hover {
    background: #e53e3e;
    color: white;
}

.help-text {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bug-grid {
        gap: 0.5rem;
    }
    
    .bug-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bug-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bug-expanded-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #a0aec0;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #4a5568;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Admin Bug Actions */
.bug-admin-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.bug-admin-actions .admin-action-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.edit-bug-btn {
    background-color: #1a1a1a;
    border: 2px solid #4a5568;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.edit-bug-btn:hover {
    border-color: #667eea;
    background-color: #243448;
    transform: translateY(-1px);
}

.edit-bug-btn:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-bug-btn:active {
    background-color: #1a1a1a;
    border-color: #4a5568;
    transform: translateY(0);
}

.edit-bug-btn svg {
    flex-shrink: 0;
}

.archive-bug-btn {
    background-color: #1a1a1a;
    border: 2px solid #d69e2e;
    color: #fbd38d;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.archive-bug-btn:hover {
    border-color: #f6ad55;
    background-color: #2d1b0a;
    transform: translateY(-1px);
}

.archive-bug-btn:focus {
    outline: none;
    border-color: #f6ad55;
    box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.1);
}

.archive-bug-btn:active {
    background-color: #1a1a1a;
    border-color: #d69e2e;
    transform: translateY(0);
}

.archive-bug-btn svg {
    flex-shrink: 0;
}

.delete-bug-btn {
    background-color: #1a1a1a;
    border: 2px solid #e53e3e;
    color: #feb2b2;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.delete-bug-btn:hover {
    border-color: #fc8181;
    background-color: #2d0a0a;
    transform: translateY(-1px);
}

.delete-bug-btn:focus {
    outline: none;
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

.delete-bug-btn:active {
    background-color: #1a1a1a;
    border-color: #e53e3e;
    transform: translateY(0);
}

.delete-bug-btn svg {
    flex-shrink: 0;
}

.restore-bug-btn {
    background-color: #1a1a1a;
    border: 2px solid #38a169;
    color: #9ae6b4;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.restore-bug-btn:hover {
    border-color: #68d391;
    background-color: #0a2d0a;
    transform: translateY(-1px);
}

.restore-bug-btn:focus {
    outline: none;
    border-color: #68d391;
    box-shadow: 0 0 0 3px rgba(104, 211, 145, 0.1);
}

.restore-bug-btn:active {
    background-color: #1a1a1a;
    border-color: #38a169;
    transform: translateY(0);
}

.restore-bug-btn svg {
    flex-shrink: 0;
}

/* Bug Form Overlay */
.bug-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.bug-form-container {
    background: #243448;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.bug-form-header h2 {
    color: #e0e0e0;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-form-btn {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-form-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.bug-form {
    padding: 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    color: #a0aec0;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid #4a5568;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #718096;
}

.form-group textarea {
    min-height: 70px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #4a5568;
}

.btn-secondary:hover {
    border-color: #667eea;
    background: #243448;
    transform: translateY(-1px);
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: #28a745;
}

/* Responsive form */
@media (max-width: 768px) {
    .bug-form-container {
        width: 95%;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bug-form-header {
        padding: 1rem;
    }
    
    .bug-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* New Bug Highlight Animation */
.bug-card.newly-created {
    animation: newBugHighlight 2s ease-out;
}

@keyframes newBugHighlight {
    0% {
        background: linear-gradient(135deg, #2d5016 0%, #3a6b1e 100%);
        transform: scale(1.01);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    }
    25% {
        background: linear-gradient(135deg, #2d5016 0%, #3a6b1e 100%);
        transform: scale(1.01);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    }
    100% {
        background: #243448;
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Help Modal Styles */
.help-modal-content {
    background: var(--bg-primary, white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.help-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted, #666);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.help-close-btn:hover {
    background-color: var(--color-gray-200, #eee);
}

.keyboard-shortcuts-help h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary, #333);
    font-size: 1.5rem;
}

.shortcuts-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: var(--color-gray-100, #f8f9fa);
}

.shortcut-item kbd {
    background: var(--color-gray-800, #333);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
    min-width: 80px;
    text-align: center;
}

.shortcut-item span {
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
}

.help-note {
    margin: 0;
    text-align: center;
    color: var(--text-muted, #666);
    font-size: 0.875rem;
}

.help-note kbd {
    background: var(--color-gray-700, #555);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Auto-targeted Bug Animation */
.bug-card.auto-targeted {
    animation: autoTargetedPulse 1.5s ease-out;
}

@keyframes autoTargetedPulse {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    25% {
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}
