/* Admin Panel - Fullscreen */
.admin-content {
    background: #0f172a;
    border: none;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    position: relative;
}

.admin-header-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.admin-tab {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
}

.admin-tab.active {
    background: #1e293b;
    color: #fff;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 10px;
    overflow-y: auto;
    max-height: 60vh;
}

.admin-card {
    background: #1e293b;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    cursor: pointer;
    position: relative;
}

.admin-card:hover {
    border-color: #3b82f6;
}

.admin-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}

.admin-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.admin-card p {
    font-size: 12px;
    color: #94a3b8;
}

.admin-card .price {
    color: #fbbf24;
    font-weight: bold;
}

/* Edit Form */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 12px;
    color: #94a3b8;
}

.form-input {
    background: #020617;
    border: 1px solid #334155;
    padding: 8px;
    color: white;
    border-radius: 6px;
}

.modal-sub-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 400;
    align-items: center;
    justify-content: center;
    display: none;
}

.modal-sub-layer.active {
    display: flex;
}

.sub-modal {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #475569;
}