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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-container, .bugs-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
}

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

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

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

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

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #3498db;
    background: #f0f7ff;
}

.upload-placeholder {
    color: #888;
}

.upload-placeholder svg {
    margin-bottom: 1rem;
    color: #aaa;
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #2980b9;
}

/* Bug List Styles */
.bugs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bug-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
}

.bug-card.status-open {
    border-left-color: #e74c3c;
}

.bug-card.status-in_progress {
    border-left-color: #f39c12;
}

.bug-card.status-resolved {
    border-left-color: #27ae60;
}

.bug-card.status-closed {
    border-left-color: #95a5a6;
}

.bug-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.bug-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.open {
    background: #ffeaea;
    color: #e74c3c;
}

.status-badge.in_progress {
    background: #fff5e6;
    color: #f39c12;
}

.status-badge.resolved {
    background: #e8f8f0;
    color: #27ae60;
}

.status-badge.closed {
    background: #f0f0f0;
    color: #95a5a6;
}

.bug-description {
    color: #666;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.bug-screenshot {
    margin-bottom: 1rem;
}

.bug-screenshot img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.bug-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

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

.bug-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-form select {
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.delete-btn {
    padding: 0.4rem 0.75rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #c0392b;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.empty-state .submit-btn {
    width: auto;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 1rem;
    }

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

    .bug-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
