:root {
    /* Color Palette */
    --primary: #FA63B4;
    /* Hot Pink from button */
    --primary-gradient: linear-gradient(135deg, #FA63B4 0%, #E04F9A 100%);
    --secondary-bg: #FFEFF5;
    /* Light pink bg */
    --bg-color: #FAF9FB;
    /* Very light background */
    --surface: #FFFFFF;
    --text-color: #1F1F2E;
    --text-muted: #8F8F9D;
    --border-color: #F0E6EA;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Spacing & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 40px rgba(250, 99, 180, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

/* Layout */
.container {
    max-width: 600px;
    /* Mobile-first constraint */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(250, 99, 180, 0.2);
    border: 1px solid rgba(250, 99, 180, 0.3);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--secondary-bg);
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(250, 99, 180, 0.1);
}

/* Buttons */
button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(250, 99, 180, 0.25);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(250, 99, 180, 0.35);
}

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

/* Navigation & Tabs */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.tab-active {
    background: var(--secondary-bg) !important;
    color: var(--primary) !important;
    border-radius: var(--radius-sm);
}

/* File Upload Custom */
.file-upload-container {
    position: relative;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    background-color: rgba(250, 99, 180, 0.03);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    gap: 0.5rem;
}

.file-upload-label:hover {
    background-color: rgba(250, 99, 180, 0.08);
    transform: translateY(-2px);
}

.file-icon {
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.file-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Bug Items */
.bug-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.bug-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

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

.bug-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: #FEF3C7;
    color: #D97706;
}

.status-resolved {
    background: #D1FAE5;
    color: #059669;
}

.bug-desc {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #E5E5E5;
    border-radius: 20px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* Dashboard Specifics */
.logout-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.logout-link:hover {
    color: var(--error);
}

/* Floating Action Button (Optional nice touch) */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: var(--primary-gradient);
    box-shadow: 0 10px 20px rgba(250, 99, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Resolved Bugs Cards */
.resolved-bugs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resolved-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resolved-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(250, 99, 180, 0.15);
    border-color: rgba(250, 99, 180, 0.3);
}

.resolved-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.resolved-icon {
    width: 32px;
    height: 32px;
    background: #D1FAE5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.resolved-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

.resolved-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Admin Bug Cards */
.admin-bug-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    transition: var(--transition);
}

.admin-bug-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(250, 99, 180, 0.2);
}

.admin-bug-info {
    flex: 1;
    min-width: 300px;
}

.admin-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.status-select {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    width: auto;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(250, 99, 180, 0.1);
}

.btn-resolve {
    background: var(--primary-gradient);
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-resolve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 99, 180, 0.3);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
}