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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    padding: 100px 20px 20px;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    color: #ffa500;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 165, 0, 0.1);
    color: #ffd700;
}

.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    color: #ffa500;
    font-size: 2.5rem;
}

.message {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: #ffa500;
    color: #000;
}

.btn-primary:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-secondary:hover {
    background: #888;
}

.btn-edit {
    background: #4CAF50;
    color: #fff;
}

.btn-edit:hover {
    background: #45a049;
}

.btn-delete {
    background: #f44336;
    color: #fff;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-add-item {
    width: 100%;
    margin-top: 1rem;
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 2px dashed #ffa500;
    padding: 1rem;
}

.btn-add-item:hover {
    background: rgba(255, 165, 0, 0.3);
}

.categories-container {
    display: grid;
    gap: 2rem;
}

.category-card {
    background: rgba(15, 20, 46, 0.8);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
}

.category-header h2 {
    color: #ffa500;
    font-size: 1.8rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

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

.item-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.item-card:hover {
    border-color: rgba(255, 165, 0, 0.5);
    transform: translateY(-2px);
}

.item-info h3 {
    color: #ffa500;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.item-description {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-price {
    color: #4CAF50;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    border: 2px solid #ffa500;
}

.modal-content h2 {
    color: #ffa500;
    margin-bottom: 1.5rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
    border-radius: 5px;
    background: #0f0f1e;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #ffa500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.model-upload-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.model-upload-section label {
    display: block;
    color: #ffa500;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.model-upload-section input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 5px;
    background: #0f0f1e;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.upload-status {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.upload-status.success {
    color: #4CAF50;
}

.upload-status.error {
    color: #f44336;
}

.upload-status.uploading {
    color: #ffa500;
}

.help-text {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-container {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
