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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn.danger { background-color: var(--danger); }
.btn.danger:hover { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin: 1.5rem auto 0 auto;
    border-radius: 8px;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-pending { background-color: rgba(99, 102, 241, 0.2); color: #818cf8; }
.status-sold { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

textarea {
    resize: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

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

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

th {
    color: var(--text-muted);
    font-weight: 600;
}

.admin-panel {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.manifest {
    background-color: white;
    color: black;
    padding: 2rem;
    border-radius: 8px;
    display: none;
}
.manifest table { margin-bottom: 2rem; }
.manifest th, .manifest td { border-bottom: 1px solid #ccc; color: black; }
@media print {
    @page { margin: 0; }
    body { background: white; margin: 0; color: black; }
    header { display: none !important; }
    main > h1 { display: none !important; }
    main > p { display: none !important; }
    .admin-panel { display: none !important; }
    .manifest { display: block !important; position: static; padding: 1.5cm; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .admin-panel {
        padding: 1.5rem 1rem;
    }
    table th, table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    .btn {
        padding: 0.75rem 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
