/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Global Styles & Variables */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
:root {
    --primary-color: #3b82f6; /* Blue 500 */
    --primary-hover: #2563eb; /* Blue 600 */
    --primary-light: #dbeafe; /* Blue 100 */
    --secondary-color: #f3f4f6; /* Gray 100 */
    --secondary-hover: #e5e7eb; /* Gray 200 */
    --text-primary: #1f2937;   /* Gray 800 */
    --text-secondary: #6b7280; /* Gray 500 */
    --border-color: #e5e7eb;   /* Gray 200 */
    --danger-color: #ef4444;   /* Red 500 */
    --danger-hover: #dc2626;   /* Red 600 */
    --success-color: #10b981;  /* Green 500 */
    --white: #ffffff;
    --background: #f9fafb; /* Gray 50 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* Loading Container */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Remove browser default select styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%236b7280' 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.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Auth Page Styles */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.auth-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.auth-toggle {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-toggle button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.auth-toggle button:hover {
    text-decoration: underline;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Main Application Layout */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, var(--background) 0%, #ffffff 100%);
}

.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.main-nav {
    display: none;
    gap: 0.25rem;
}

@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav.mobile-menu-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.menu-button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.menu-button:hover {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.page-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Buttons */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(1px);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--text-secondary);
}

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

.btn-danger:hover {
    background-color: var(--danger-hover);
    box-shadow: var(--shadow);
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

input[type="text"], select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    background-color: var(--white);
    transition: var(--transition);
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Entry Page Specifics */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.entry-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Survey Fields Display - Grid Layout */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#survey-fields-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.survey-field {
    background-color: var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.survey-field:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.survey-field label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin: 0;
}

.remove-btn {
    background-color: var(--danger-color);
    color: var(--white);
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.remove-btn:hover {
    background-color: var(--danger-hover);
    transform: scale(1.1);
}

.entry-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    #survey-fields-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .survey-field {
        padding: 0.625rem 0.75rem;
    }
    
    .entry-actions {
        flex-direction: column;
    }
    
    .entry-actions .btn {
        width: 100%;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Dashboard Page Specifics */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#dashboard-data-container {
    margin-top: 2rem;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* For small screens */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    font-weight: 600;
}

td input {
    padding: 0.5rem;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Modal Styles */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Table Styles for Dashboard */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table-container th,
.table-container td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-container th {
    background-color: var(--secondary-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: sticky;
    top: 0;
}

.table-container td {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.table-container tbody tr {
    transition: var(--transition);
}

.table-container tbody tr:hover {
    background-color: var(--background);
}

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

.cell-input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.cell-input:focus {
    outline: none;
    border-color: var(--primary-hover);
    background-color: var(--white);
}

.cell-value {
    display: block;
    min-height: 1.5rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    margin-right: 0.375rem;
    box-shadow: none;
}

.btn-sm:hover {
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .table-container th,
    .table-container td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Data Entry Form Grid */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#data-entry-form-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

#data-entry-form-container .form-group {
    margin-bottom: 0;
}

#data-entry-form-container button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    #data-entry-form-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Responsive Design */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 0.25rem;
    }
    .menu-button {
        display: none;
    }
    
    .page-content {
        padding: 2rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .main-header {
        padding: 1rem 2rem;
    }
    
    .page-content {
        padding: 2.5rem;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Mobile Optimizations */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@media (max-width: 640px) {
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.875rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Account Page Styling */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#user-email-display {
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Loading States & Animations */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Success Toast Notification */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    font-size: 0.9375rem;
    z-index: 2000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 640px) {
    .success-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* About Page Styles */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.about-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.developer-section {
    margin-top: 1rem;
}

.developer-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.developer-image {
    flex-shrink: 0;
}

.developer-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.developer-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.developer-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.developer-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--border-color);
}

.contact-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.contact-link svg {
    flex-shrink: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.expertise-section,
.philosophy-section,
.achievements-section,
.contact-section {
    margin-top: 1.5rem;
}

.expertise-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    padding: 0.625rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.expertise-list li:last-child {
    border-bottom: none;
}

.expertise-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

.philosophy-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    font-style: italic;
    padding: 1rem;
    background: var(--background);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.achievement-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.achievement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.availability-text {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: center;
    border: 1px solid var(--primary-color);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .developer-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-links {
        width: 100%;
    }

    .expertise-list li {
        font-size: 0.875rem;
    }

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

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Account Page Styles */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-section {
    margin-bottom: 1rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-height: 3.25rem;
}

.info-item:first-child {
    padding: 0.5rem 1rem;
    min-height: 2.75rem;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: right;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-active {
    background: var(--success-color);
    color: var(--white);
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.account-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .account-actions .btn {
        width: 100%;
    }
}

/* Insights Page Styles */
.insight-chart {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.insight-chart h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.pie-chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.pie-chart {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .pie-chart-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pie-chart {
        max-width: 150px;
    }
}

/* Survey List Styles */
#surveys-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.survey-item:hover {
    background: var(--bg-secondary);
}

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

.survey-info small {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

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

@media (max-width: 640px) {
    .survey-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .survey-item button {
        align-self: stretch;
    }
}
