/* ClaimIt Web Application - Modern Styles */

/* Edit Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 1.5rem 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-actions .btn-primary {
    background: #007bff;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #0056b3;
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #545b62;
}

/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern CSS Variables */
:root {
    /* Primary Colors */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-900: #0c4a6e;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    
    /* Orange Colors */
    --orange-50: #fff7ed;
    --orange-200: #fed7aa;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    
    /* Green Colors */
    --green-50: #f0fdf4;
    --green-200: #bbf7d0;
    --green-800: #166534;
    
    /* Success and Error Colors */
    --success-color: #10b981;
    --danger-color: #f43f5e;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--gray-50);
    font-size: 16px;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--gray-900);
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.25rem; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
    line-height: 1.7;
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    min-height: 60px; /* Ensure consistent container height */
}

.nav-logo {
    color: var(--primary-600);
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.025em;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-8);
    min-height: 44px; /* Consistent height for navigation bar */
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 36px; /* Consistent height with user info */
}

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

.nav-link.active {
    color: var(--primary-600);
    background-color: var(--primary-100);
    font-weight: 600;
}

/* User Navigation Menu */
.nav-user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
}

.nav-user-dropdown {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    min-height: 36px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: inherit;
}

.nav-user-trigger:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.nav-user-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-200);
}

.nav-user-name {
    font-weight: 500;
}

.nav-user-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-user-dropdown.active .nav-user-arrow {
    transform: rotate(180deg);
}

.nav-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-1);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-user-dropdown.active .nav-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-dropdown-icon {
    font-size: 1rem;
    width: 1rem;
    text-align: center;
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0; /* Prevent avatar from shrinking */
    object-fit: cover; /* Ensure image scales properly */
}

.nav-user-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    background: var(--primary-500);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: var(--space-2);
        align-items: stretch; /* Full width on mobile */
        min-height: auto;
    }
    
    .nav-menu li {
        width: 100%;
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--space-4);
        min-height: auto;
        padding: var(--space-4) var(--space-6);
    }
    
    .nav-user-menu {
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
        align-items: center;
    }
    
    .nav-user-dropdown {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-user-trigger {
        justify-content: center;
        width: 100%;
    }
    
    .nav-user-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: var(--space-2);
        width: 100%;
        max-width: 300px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--gray-200);
        transition: all 0.2s ease;
    }
    
    .nav-user-dropdown.active .nav-user-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
}

/* Modern Main Content */
.main-content {
    min-height: calc(100vh - 140px);
}

/* Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-purple) 100%);
    color: white;
    padding: var(--space-16) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="white" opacity="0.1"/><circle cx="800" cy="300" r="1.5" fill="white" opacity="0.1"/><circle cx="600" cy="700" r="2.5" fill="white" opacity="0.1"/></svg>');
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-6);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Features Section */
.features-section {
    padding: var(--space-16) 0;
    background: white;
}

.features-section h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    font-size: 2.75rem;
    color: var(--gray-900);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-6);
    filter: grayscale(20%);
}

.feature-card h3 {
    margin-bottom: var(--space-4);
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Modern Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-purple) 100%);
    color: white;
    padding: var(--space-6) 0;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-1);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Compact page header for pages that don't need subtitles */
.page-header.compact {
    padding: var(--space-4) 0;
}

.page-header.compact h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Modern Content Sections */
.content-section {
    padding: var(--space-12) 0;
    background: white;
}

.content-section h2 {
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.content-section h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: var(--space-6);
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.content-text ul {
    padding-left: var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--gray-600);
}

.content-text li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.placeholder-image {
    background: var(--gray-100);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    color: var(--gray-400);
    font-style: italic;
    border: 2px dashed var(--gray-300);
}

.about-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Modern Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
    background-color: var(--primary-50);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.claim-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.contact-item {
    margin-bottom: var(--space-8);
}

.contact-item h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.contact-form {
    background: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--primary-600);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background: var(--primary-700);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-700);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* Modern Alerts */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    border: 1px solid;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: #f0fdf4;
    border-color: var(--accent-emerald);
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-color: var(--accent-rose);
    color: #991b1b;
}

.alert-info {
    background-color: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-900);
}

.alert ul {
    margin: 0;
    padding-left: var(--space-6);
}

/* Modern Error Page */
.error-page {
    text-align: center;
    padding: var(--space-16) 0;
    background: white;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.error-title {
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
    font-weight: 600;
}

.error-message {
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-12) 0;
    text-align: center;
    border-top: 1px solid var(--gray-800);
}

.footer-content p {
    margin: 0;
    font-size: 0.95rem;
}

.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-400);
    text-decoration: underline;
}

/* S3 Specific Styles */
.s3-info {
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    border: 1px solid var(--gray-200);
}

.s3-controls {
    margin-bottom: var(--space-8);
}

.objects-table {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.objects-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.objects-table th,
.objects-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.objects-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.objects-table tr:hover {
    background: var(--gray-50);
}

.object-key {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
}

.key-extension {
    color: var(--gray-500);
    font-weight: 600;
}

.object-actions {
    white-space: nowrap;
}

.url-container {
    background: var(--gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    margin: var(--space-3) 0;
}

.no-objects {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

/* Modern Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav-container {
        padding: 0 var(--space-4);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .content-section h2 {
        font-size: 1.875rem;
    }
    
    .feature-card {
        padding: var(--space-6);
    }
    
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .error-code {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-section,
    .page-header {
        padding: var(--space-8) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-section {
        padding: var(--space-8) 0;
    }
    
    .content-section {
        padding: var(--space-8) 0;
    }
    
    .contact-form {
        padding: var(--space-4);
    }
}

/* Claim status styling */
.item-claimed {
    color: var(--accent-amber);
    font-weight: 500;
    background: #fef3c7;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    border: 1px solid #fbbf24;
    font-size: 0.9rem;
}

.claim-date {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: var(--space-1);
}

/* Button styling for claim states */
.btn-warning {
    background-color: var(--accent-amber);
    border-color: var(--accent-amber);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
    background-color: var(--gray-400);
    border-color: var(--gray-400);
    color: white;
    cursor: not-allowed;
}

.btn-secondary:disabled:hover,
.btn-secondary.disabled:hover {
    background-color: var(--gray-400);
    border-color: var(--gray-400);
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Success message styling */
.alert-success {
    background-color: #f0fdf4;
    border: 1px solid var(--accent-emerald);
    color: #166534;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.stat-card {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.stat-card h3 {
    color: var(--primary-600);
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.stat-card p {
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.dashboard-content {
    margin-top: 2rem;
}

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

.section-header h2 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.text-muted {
    color: var(--gray-500);
}

/* Waitlist Section Styles */
.waitlist-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.waitlist-section h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.waitlist-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.waitlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.waitlist-item.primary-claim {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.waitlist-position {
    flex-shrink: 0;
}

.position-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--gray-300);
    color: var(--gray-700);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.position-badge.primary {
    background: var(--primary-500);
    color: white;
}

.waitlist-info {
    flex: 1;
}

.claimant-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.claim-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.waitlist-actions {
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
} 

/* ========================================
   NAVIGATION LOGO STYLES
   ======================================== */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

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

/* ========================================
   UNIFIED ITEM CARD STYLES
   ======================================== */

.item-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    /* Prevent layout shift by setting consistent aspect ratio */
    aspect-ratio: 16/9;
    min-height: 200px;
    /* Fallback for older browsers */
    @supports not (aspect-ratio: 16/9) {
        height: 200px;
    }
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Prevent layout shift by reserving space */
    display: block;
}

.item-card:hover .item-image {
    transform: scale(1.05);
}

/* Detail view image container - prevent layout shift */
.image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    /* Reserve space to prevent layout shift */
    min-height: 200px;
}

.detail-image {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent layout shift by reserving space */
    min-height: 200px;
    object-fit: contain;
}

/* Loading indicator styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 300px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.loading-indicator p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-600);
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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


.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 2rem;
}

.no-image-placeholder p {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
}

.item-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.item-description {
    margin: 0 0 1rem 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.875rem;
}

.item-posted-date {
    margin: 0 0 0.75rem 0;
}

.posted-date {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

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

.item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #28a745;
}

.item-posted-by {
    font-size: 0.875rem;
    color: #6c757d;
}

.item-claim-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.claim-status {
    font-size: 0.875rem;
    font-weight: 500;
}

.claim-status.primary {
    color: #007bff;
}

.waitlist-count {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: auto;
}

.item-actions .btn {
    flex-shrink: 0;
    min-width: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.item-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.item-actions .btn-primary {
    background: #007bff;
    color: white;
}

.item-actions .btn-primary:hover {
    background: #0056b3;
}

.item-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.item-actions .btn-secondary:hover {
    background: #545b62;
}

.item-actions .btn-success {
    background: #28a745;
    color: white;
}

.item-actions .btn-success:hover {
    background: #1e7e34;
}

.item-actions .btn-warning {
    background: #ffc107;
    color: #212529;
}

.item-actions .btn-warning:hover {
    background: #e0a800;
}

.item-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.item-actions .btn-danger:hover {
    background: #c82333;
}

/* Claim status styling */
.claim-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    margin-right: auto;
}

.claim-status.primary {
    background: #28a745;
    color: white;
}

.claim-status.waitlist {
    background: #fd7e14;
    color: white;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.claim-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.item-waitlist {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments for item cards */
@media (max-width: 768px) {
    .item-card {
        margin-bottom: 1rem;
    }
    
    .item-content {
        padding: 1rem;
    }
    
    .item-actions {
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .item-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .item-image-container {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .item-title {
        font-size: 1.125rem;
    }
    
    .item-content {
        padding: 0.75rem;
    }
    
    .item-actions {
        padding: 0.5rem;
    }
} 